Skip to content

Commit

Permalink
Remove cluster deletion code
Browse files Browse the repository at this point in the history
  • Loading branch information
ventifus committed Sep 9, 2024
1 parent f4b0e1c commit 490fc87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/util/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var (
pkgpath = filepath.Dir(thisfile)
repopath = strings.Replace(thisfile, "pkg/util/log/log.go", "", -1)

loglevel = flag.String("loglevel", "info", "{panic,fatal,error,warning,info,debug,trace}")
loglevel = flag.String("loglevel", "debug", "{panic,fatal,error,warning,info,debug,trace}")

// matches URLs that look like /subscriptions/%s/providers/%s/%s
RXProviderResourceKind = regexp.MustCompile(`^/subscriptions/([^/]+)/providers/([^/]+)/([^/]+)$`)
Expand Down
10 changes: 5 additions & 5 deletions test/e2e/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,15 +464,15 @@ func setup(ctx context.Context) error {
func done(ctx context.Context) error {
// terminate early if delete flag is set to false
if os.Getenv("CI") != "" && os.Getenv("E2E_DELETE_CLUSTER") != "false" {
cluster, err := cluster.New(log, _env, os.Getenv("CI") != "")
_, err := cluster.New(log, _env, os.Getenv("CI") != "")
if err != nil {
return err
}

err = cluster.Delete(ctx, vnetResourceGroup, clusterName)
if err != nil {
return err
}
// err = cluster.Delete(ctx, vnetResourceGroup, clusterName)
// if err != nil {
// return err
// }
}

return nil
Expand Down

0 comments on commit 490fc87

Please sign in to comment.