mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
bootstrapper: use zap.Duration to log durations
This commit is contained in:
parent
13b15368d7
commit
4bf2498793
@ -200,7 +200,7 @@ func (k *KubeWrapper) InitCluster(
|
|||||||
return nil, fmt.Errorf("waiting for Cilium to become healthy: %w", err)
|
return nil, fmt.Errorf("waiting for Cilium to become healthy: %w", err)
|
||||||
}
|
}
|
||||||
timeUntilFinishedWaiting := time.Since(timeToStartWaiting)
|
timeUntilFinishedWaiting := time.Since(timeToStartWaiting)
|
||||||
log.Infof("Cilium took %s to become healthy", timeUntilFinishedWaiting.Round(time.Second).String())
|
log.With(zap.Duration("duration", timeUntilFinishedWaiting)).Infof("Cilium became healthy")
|
||||||
|
|
||||||
log.Infof("Restart Cilium")
|
log.Infof("Restart Cilium")
|
||||||
if err := k.clusterUtil.FixCilium(ctx); err != nil {
|
if err := k.clusterUtil.FixCilium(ctx); err != nil {
|
||||||
@ -253,8 +253,7 @@ func (k *KubeWrapper) InitCluster(
|
|||||||
return nil, fmt.Errorf("installing cert-manager: %w", err)
|
return nil, fmt.Errorf("installing cert-manager: %w", err)
|
||||||
}
|
}
|
||||||
timeUntilFinishedWaiting = time.Since(timeToStartWaiting)
|
timeUntilFinishedWaiting = time.Since(timeToStartWaiting)
|
||||||
log.Infof("cert-manager took %s to be fully installed", timeUntilFinishedWaiting.Round(time.Second).String())
|
log.With(zap.Duration("duration", timeUntilFinishedWaiting)).Infof("cert-manager installation finished")
|
||||||
|
|
||||||
operatorVals, err := k.setupOperatorVals(ctx)
|
operatorVals, err := k.setupOperatorVals(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("setting up operator vals: %w", err)
|
return nil, fmt.Errorf("setting up operator vals: %w", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user