Skip to content

Commit 835df12

Browse files
committed
Add check for AZURE_FEDERATED_TOKEN_FILE environment variable in Velero deployment test
Signed-off-by: Tiger Kaovilai <[email protected]>
1 parent db6eadb commit 835df12

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

internal/controller/velero_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2579,6 +2579,9 @@ func TestDPAReconciler_buildVeleroDeploymentWithAzureWorkloadIdentity(t *testing
25792579
if !foundClientIDEnvVar {
25802580
t.Errorf("Expected AZURE_CLIENT_ID environment variable to be set")
25812581
}
2582+
if !foundTokenFileEnvVar {
2583+
t.Errorf("Expected AZURE_FEDERATED_TOKEN_FILE environment variable to be set")
2584+
}
25822585
} else {
25832586
}
25842587
})

pkg/credentials/stsflow/stsflow.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,4 +385,3 @@ func GetGCPCredentialsFromSecret(clientset kubernetes.Interface, namespace strin
385385

386386
return string(serviceAccountJSON), nil
387387
}
388-

0 commit comments

Comments
 (0)