bootstrapper: calculate duration for all Helm charts

This commit is contained in:
Nils Hanke 2023-03-13 16:22:22 +01:00 committed by Nils Hanke
parent 4bf2498793
commit c1112addff
2 changed files with 7 additions and 4 deletions

View file

@ -248,12 +248,10 @@ func (k *KubeWrapper) InitCluster(
// cert-manager is necessary for our operator deployments.
log.Infof("Installing cert-manager")
timeToStartWaiting = time.Now()
if err = k.helmClient.InstallCertManager(ctx, helmReleases.CertManager); err != nil {
return nil, fmt.Errorf("installing cert-manager: %w", err)
}
timeUntilFinishedWaiting = time.Since(timeToStartWaiting)
log.With(zap.Duration("duration", timeUntilFinishedWaiting)).Infof("cert-manager installation finished")
operatorVals, err := k.setupOperatorVals(ctx)
if err != nil {
return nil, fmt.Errorf("setting up operator vals: %w", err)