We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 82f169f + 9292eb1 commit 3ea84e6Copy full SHA for 3ea84e6
hack/create-identity-secret.sh
@@ -26,5 +26,8 @@ cd "${REPO_ROOT}" && make "${KUBECTL##*/}"
26
# shellcheck source=hack/parse-prow-creds.sh
27
source "${REPO_ROOT}/hack/parse-prow-creds.sh"
28
29
-"${KUBECTL}" create secret generic "${AZURE_CLUSTER_IDENTITY_SECRET_NAME}" --from-literal=clientSecret="${AZURE_CLIENT_SECRET}"
+if ! "${KUBECTL}" get secret "${AZURE_CLUSTER_IDENTITY_SECRET_NAME}" > /dev/null; then
30
+ "${KUBECTL}" create secret generic "${AZURE_CLUSTER_IDENTITY_SECRET_NAME}" --from-literal=clientSecret="${AZURE_CLIENT_SECRET}"
31
+fi
32
+
33
"${KUBECTL}" label secret "${AZURE_CLUSTER_IDENTITY_SECRET_NAME}" "clusterctl.cluster.x-k8s.io/move-hierarchy=true" --overwrite=true
0 commit comments