diff --git a/internal/local/chart/chart.go b/internal/local/chart/chart.go index af4b324..1614541 100644 --- a/internal/local/chart/chart.go +++ b/internal/local/chart/chart.go @@ -55,7 +55,7 @@ func chartSpec(client helmclient.Client, opts *HelmOptions) (*helmclient.ChartSp } logger.Debug(). - Interface("configuration", opts.Config). + Interface("configuration", opts.Config.LoggingSafe()). Msg("Generating chart values") values, err := generateValuesV3(opts.Config) @@ -67,12 +67,11 @@ func chartSpec(client helmclient.Client, opts *HelmOptions) (*helmclient.ChartSp return nil, fmt.Errorf("failed serializing values yaml: %w", err) } - logger.Debug().Msgf("Helm values.yaml:\n%s", string(opts.Values)) - chartVersion := "" // any available if opts.Override != nil { chartVersion = opts.Override.Version } + return &helmclient.ChartSpec{ ReleaseName: ReleaseName, ChartName: chartLocation, diff --git a/internal/local/chart/generate.go b/internal/local/chart/generate.go index d06a3c7..28cf5f7 100644 --- a/internal/local/chart/generate.go +++ b/internal/local/chart/generate.go @@ -43,9 +43,6 @@ func (g *yamlGenerator) Generate(configuration *config_v1.Configuration) (yamlMa return nil, err } - - logger.Debug().Interface("result", result).Interface("visitorResult", visitorResult).Msg("Generated yaml") - } return result, nil diff --git a/internal/local/chart/v3.go b/internal/local/chart/v3.go index deb757d..ed3af4a 100644 --- a/internal/local/chart/v3.go +++ b/internal/local/chart/v3.go @@ -174,8 +174,6 @@ func configureOverrides(configuration *config_v1.Configuration) (yamlMap, error) err = errors.Join(err, writeMapEntry(cfg, key, v)) } - logger.Debug().Interface("overrides", cfg).Msg("Overrides") - return cfg, err } diff --git a/internal/local/config/v1/v1.go b/internal/local/config/v1/v1.go index adc826b..8253395 100644 --- a/internal/local/config/v1/v1.go +++ b/internal/local/config/v1/v1.go @@ -55,3 +55,10 @@ type Configuration struct { func (c Configuration) Validate() error { return nil } + +func (c Configuration) LoggingSafe() Configuration { + c.TLS.Cert = "HIDDEN" + c.TLS.Key = "HIDDEN" + c.SMTP.Password = "HIDDEN" + return c +}