Skip to content

Commit

Permalink
bootstrapper: fix loglevel in helm install retry
Browse files Browse the repository at this point in the history
One needs to set a different log verbosity to see logs logged with
Debugf.
  • Loading branch information
derpsteb authored and msanft committed Feb 13, 2023
1 parent ed6a44f commit 41bb6f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bootstrapper/internal/helm/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/edgelesssys/constellation/v2/internal/deploy/helm"
"github.com/edgelesssys/constellation/v2/internal/logger"
"github.com/edgelesssys/constellation/v2/internal/retry"
"go.uber.org/zap"
"helm.sh/helm/v3/pkg/action"
"helm.sh/helm/v3/pkg/chart"
"helm.sh/helm/v3/pkg/chart/loader"
Expand Down Expand Up @@ -222,7 +223,7 @@ type installDoer struct {

// Do logs which chart is installed and tries to install it.
func (i installDoer) Do(ctx context.Context) error {
i.log.Debugf("trying helm install for chart %s", i.chart.Name())
i.log.With(zap.String("chart", i.chart.Name())).Infof("Trying to install helm chart")

_, err := i.client.RunWithContext(ctx, i.chart, i.values)

Expand Down

0 comments on commit 41bb6f3

Please sign in to comment.