Skip to content

Commit

Permalink
Merge pull request #5050 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…5047-to-release-1.16

[release-1.16] set AZURE_CLIENT_ID_USER_ASSIGNED_IDENTITY for create-custom-cloud-provider-config.sh
  • Loading branch information
k8s-ci-robot authored Aug 3, 2024
2 parents 8878997 + 0c2c8e2 commit cfcb404
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ create-management-cluster: $(KUSTOMIZE) $(ENVSUBST) $(KUBECTL) $(KIND) ## Create
./hack/install-cert-manager.sh

# Create customized cloud provider configs
AZURE_CLIENT_ID_USER_ASSIGNED_IDENTITY="$${AZURE_CLIENT_ID_USER_ASSIGNED_IDENTITY:-$$(cat $(AZURE_IDENTITY_ID_FILEPATH))}" \
./hack/create-custom-cloud-provider-config.sh

# Deploy CAPI
Expand Down
1 change: 0 additions & 1 deletion hack/create-custom-cloud-provider-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ if [[ -n "${CUSTOM_CLOUD_PROVIDER_CONFIG:-}" ]]; then
CLOUD_PROVIDER_CONFIG="${CUSTOM_CLOUD_PROVIDER_CONFIG:-}"
fi

echo "curling ${CLOUD_PROVIDER_CONFIG}"
curl --retry 3 -sL -o tmp_azure_json "${CLOUD_PROVIDER_CONFIG}"
"${ENVSUBST}" < tmp_azure_json > azure_json
"${KUBECTL}" delete secret "${CLUSTER_NAME}-control-plane-azure-json" -n default || true
Expand Down

0 comments on commit cfcb404

Please sign in to comment.