Skip to content

Commit

Permalink
adding else logic
Browse files Browse the repository at this point in the history
  • Loading branch information
koala7659 committed May 9, 2024
1 parent 8ba6f0d commit 8923bf0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/provisioner/internal/gardener/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (g *GardenerProvisioner) ProvisionCluster(cluster model.Cluster, operationI
g.applyAuditConfig(shootTemplate)
}

if g.enableDumpShootSpec {
if g.enableDumpShootSpec == true {
log.Infof("Shoot Spec Dump Start ===============================")

shootTemplateBytes, e := yaml.Marshal(&shootTemplate)
Expand All @@ -99,6 +99,8 @@ func (g *GardenerProvisioner) ProvisionCluster(cluster model.Cluster, operationI
}

log.Infof("Shoot Spec Dump End =================================")
} else {
log.Infof("Shoot Spec Dump feature is disabeled")
}

_, k8serr := g.shootClient.Create(context.Background(), shootTemplate, v1.CreateOptions{})
Expand Down

0 comments on commit 8923bf0

Please sign in to comment.