Skip to content

Commit

Permalink
test-e2e: Make KBS opt-in for e2e tests
Browse files Browse the repository at this point in the history
This change make KBS opt-in for e2e tests. For
Azure provisioner opt-in for KBS installation.

Signed-off-by: Suraj Deshmukh <[email protected]>
  • Loading branch information
surajssd authored and mkulke committed Mar 6, 2024
1 parent d25f8bc commit 059bff6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ func TestMain(m *testing.M) {
}

// The DEPLOY_KBS is exported then provisioner will install kbs before installing CAA
shouldDeployKbs := true
if os.Getenv("DEPLOY_KBS") != "yes" {
shouldDeployKbs = false
shouldDeployKbs := false
if os.Getenv("DEPLOY_KBS") == "true" {
shouldDeployKbs = true
}

if !shouldProvisionCluster {
Expand Down
3 changes: 3 additions & 0 deletions test/provisioner/azure/provision_azure.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ SSH_USERNAME=""
AZURE_CLI_AUTH="false"
IS_CI_MANAGED_CLUSTER="false"
IS_SELF_MANAGED_CLUSTER="false"

# KBS configs
KBS_IMAGE="${KBS_IMAGE}"
KBS_IMAGE_TAG="${KBS_IMAGE_TAG}"
DEPLOY_KBS="true"

0 comments on commit 059bff6

Please sign in to comment.