kube/testapp/certman-istio-operator/app/hooks/ingress-add.sh
2019-08-11 22:16:06 +02:00

12 lines
245 B
Bash
Executable file

#!/bin/bash
source /hooks/common/functions.sh
if [[ $1 == "--config" ]]; then
config add
else
json=${BINDING_CONTEXT_PATH}
ns=$(jq -r '.[0].resourceNamespace' ${json})
res=$(jq -r '.[0].resourceName' ${json})
add "${res}" "${ns}"
fi