kube/testapp/certman-istio-controller/hooks/ingress-delete.sh

9 lines
168 B
Bash
Executable file

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