File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ export WORKER_MACHINE_COUNT=${WORKER_MACHINE_COUNT:-2}
5050export KUBERNETES_VERSION=" ${KUBERNETES_VERSION:- v1.19.7} "
5151export CLUSTER_TEMPLATE=" ${CLUSTER_TEMPLATE:- cluster-template.yaml} "
5252
53+ # identity secret settings.
54+ export AZURE_CLUSTER_IDENTITY_SECRET_NAME=" cluster-identity-secret"
55+ export CLUSTER_IDENTITY_NAME=${CLUSTER_IDENTITY_NAME:= " cluster-identity" }
56+ export AZURE_CLUSTER_IDENTITY_SECRET_NAMESPACE=" default"
57+
5358# Generate SSH key.
5459SSH_KEY_FILE=${SSH_KEY_FILE:- " " }
5560if [ -z " $SSH_KEY_FILE " ]; then
Original file line number Diff line number Diff line change @@ -26,9 +26,5 @@ source "${REPO_ROOT}/hack/ensure-kubectl.sh"
2626# shellcheck source=hack/parse-prow-creds.sh
2727source " ${REPO_ROOT} /hack/parse-prow-creds.sh"
2828
29- export AZURE_CLUSTER_IDENTITY_SECRET_NAME=" cluster-identity-secret"
30- export CLUSTER_IDENTITY_NAME=${CLUSTER_IDENTITY_NAME:= " cluster-identity" }
31- export AZURE_CLUSTER_IDENTITY_SECRET_NAMESPACE=" default"
32-
3329kubectl create secret generic " ${AZURE_CLUSTER_IDENTITY_SECRET_NAME} " --from-literal=clientSecret=" ${AZURE_CLIENT_SECRET} "
3430kubectl label secret " ${AZURE_CLUSTER_IDENTITY_SECRET_NAME} " " clusterctl.cluster.x-k8s.io/move-hierarchy=true" --overwrite=true
You can’t perform that action at this time.
0 commit comments