Skip to content

Commit

Permalink
Revert "test: add condition for kbs deploy in provisioner to align wi…
Browse files Browse the repository at this point in the history
…th e2e test"

This reverts commit 3fe7bf5.
  • Loading branch information
stevenhorsman authored and wainersm committed Apr 15, 2024
1 parent 779dcf7 commit 6c87f31
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/cloud-api-adaptor/test/tools/provisioner-cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,16 +173,14 @@ func main() {
log.Fatal(err)
}

if strings.EqualFold(shouldDeployKbs, "true") || strings.EqualFold(shouldDeployKbs, "yes") {
props := provisioner.GetProperties(context.TODO(), cfg)
keyBrokerService, err := pv.NewKeyBrokerService(props["CLUSTER_NAME"])
if err != nil {
log.Fatal(err)
}

if err = keyBrokerService.Delete(context.TODO(), cfg); err != nil {
log.Fatal(err)
}
props := provisioner.GetProperties(context.TODO(), cfg)
keyBrokerService, err := pv.NewKeyBrokerService(props["CLUSTER_NAME"])
if err != nil {
log.Fatal(err)
}

if err = keyBrokerService.Delete(context.TODO(), cfg); err != nil {
log.Fatal(err)
}

kubeconfigPath := kconf.ResolveKubeConfigFile()
Expand Down

0 comments on commit 6c87f31

Please sign in to comment.