Skip to content

Commit 548ab9f

Browse files
authored
Merge pull request #3879 from k8s-infra-cherrypick-robot/cherry-pick-3872-to-release-1.10
[release-1.10] Remove control-plane-azure-json before creation
2 parents f9ef7ec + 85b34ef commit 548ab9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hack/create-custom-cloud-provider-config.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ make --directory="${REPO_ROOT}" "${KUBECTL##*/}"
2828
if [[ -n "${CUSTOM_CLOUD_PROVIDER_CONFIG:-}" ]]; then
2929
curl --retry 3 -sL -o tmp_azure_json "${CUSTOM_CLOUD_PROVIDER_CONFIG}"
3030
envsubst < tmp_azure_json > azure_json
31-
kubectl create secret generic "${CLUSTER_NAME}-control-plane-azure-json" \
31+
"${KUBECTL}" delete secret "${CLUSTER_NAME}-control-plane-azure-json" || true
32+
"${KUBECTL}" create secret generic "${CLUSTER_NAME}-control-plane-azure-json" \
3233
--from-file=control-plane-azure.json=azure_json \
3334
--from-file=worker-node-azure.json=azure_json
3435
rm tmp_azure_json azure_json

0 commit comments

Comments
 (0)