diff --git a/changelog/fragments/zap-verbosity.yaml b/changelog/fragments/zap-verbosity.yaml new file mode 100644 index 00000000000..e31e8fae9fb --- /dev/null +++ b/changelog/fragments/zap-verbosity.yaml @@ -0,0 +1,17 @@ +# entries is a list of entries to include in +# release notes and/or the migration guide +entries: + - description: > + Helm operator reconciliation diffs are now logged only at the zap + debug level. + + # kind is one of: + # - addition + # - change + # - deprecation + # - removal + # - bugfix + kind: "removal" + + # Is this a breaking change? + breaking: false \ No newline at end of file diff --git a/internal/helm/controller/reconcile.go b/internal/helm/controller/reconcile.go index 3917f86d77a..74f7e2a7210 100644 --- a/internal/helm/controller/reconcile.go +++ b/internal/helm/controller/reconcile.go @@ -130,7 +130,7 @@ func (r HelmOperatorReconciler) Reconcile(ctx context.Context, request reconcile log.Info("Release not found") } else { log.Info("Uninstalled release") - if log.V(0).Enabled() && uninstalledRelease != nil { + if log.V(1).Enabled() && uninstalledRelease != nil { fmt.Println(diff.Generate(uninstalledRelease.Manifest, "")) } if !wait { @@ -252,7 +252,7 @@ func (r HelmOperatorReconciler) Reconcile(ctx context.Context, request reconcile } log.Info("Installed release") - if log.V(0).Enabled() { + if log.V(1).Enabled() { fmt.Println(diff.Generate("", installedRelease.Manifest)) } log.V(1).Info("Config values", "values", installedRelease.Config) @@ -315,7 +315,7 @@ func (r HelmOperatorReconciler) Reconcile(ctx context.Context, request reconcile } log.Info("Upgraded release", "force", force) - if log.V(0).Enabled() { + if log.V(1).Enabled() { fmt.Println(diff.Generate(previousRelease.Manifest, upgradedRelease.Manifest)) } log.V(1).Info("Config values", "values", upgradedRelease.Config)