Skip to content

Commit d244a39

Browse files
authored
ci: skip key download if preflight is true (#1609)
Signed-off-by: Anish Ramasekar <[email protected]>
1 parent 75a96ee commit d244a39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/create-kind-cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ EOF
9494
}
9595

9696
download_service_account_keys() {
97-
if [[ -z "${SERVICE_ACCOUNT_KEYVAULT_NAME:-}" ]]; then
97+
if [[ -z "${SERVICE_ACCOUNT_KEYVAULT_NAME:-}" ]] || [[ "${SKIP_PREFLIGHT:-}" == "true" ]]; then
9898
return
9999
fi
100100
az keyvault secret show --vault-name "${SERVICE_ACCOUNT_KEYVAULT_NAME}" --name sa-pub | jq -r .value | base64 -d > "${SERVICE_ACCOUNT_KEY_FILE}"

test/e2e/proxy_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var _ = ginkgo.Describe("Proxy [LinuxOnly] [AKSSoakOnly]", func() {
4040
serviceAccount,
4141
"mcr.microsoft.com/azure-cli",
4242
nil,
43-
[]string{"/bin/sh", "-c", fmt.Sprintf("az login -i -u %s --allow-no-subscriptions --debug; sleep 3600", clientID)},
43+
[]string{"/bin/sh", "-c", fmt.Sprintf("az login -i --client-id %s --allow-no-subscriptions --debug; sleep 3600", clientID)},
4444
nil,
4545
proxyAnnotations,
4646
map[string]string{useWorkloadIdentityLabel: "true"},

0 commit comments

Comments
 (0)