diff --git a/backend/src/cache/deployer/deploy-cache-service.sh b/backend/src/cache/deployer/deploy-cache-service.sh index 268006201dd..838f93c73c8 100755 --- a/backend/src/cache/deployer/deploy-cache-service.sh +++ b/backend/src/cache/deployer/deploy-cache-service.sh @@ -24,25 +24,47 @@ echo "Start deploying cache service to existing cluster:" NAMESPACE=${NAMESPACE_TO_WATCH:-kubeflow} MUTATING_WEBHOOK_CONFIGURATION_NAME="cache-webhook-${NAMESPACE}" +WEBHOOK_SECRET_NAME=webhook-server-tls # This should fail if there are connectivity problems # Gotcha: Listing all objects requires list permission, # but when listing a single oblect kubecttl will fail if it's not found # unless --ignore-not-found is specified. kubectl get mutatingwebhookconfigurations "${MUTATING_WEBHOOK_CONFIGURATION_NAME}" --namespace "${NAMESPACE}" --ignore-not-found >webhooks.txt +kubectl get secrets "${WEBHOOK_SECRET_NAME}" --namespace "${NAMESPACE}" --ignore-not-found >cache_secret.txt +webhook_config_exists=false if grep "${MUTATING_WEBHOOK_CONFIGURATION_NAME}" -w