Skip to content

Commit

Permalink
Update bootstrap/kubeadm/internal/controllers/kubeadmconfig_controlle…
Browse files Browse the repository at this point in the history
…r.go

Co-authored-by: Stefan Büringer <4662360+sbueringer@users.noreply.github.com>
  • Loading branch information
AndiDog and sbueringer committed Jan 31, 2024
1 parent 80cc163 commit b620426
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func (r *KubeadmConfigReconciler) refreshBootstrapTokenIfNeeded(ctx context.Cont
if err != nil {
return ctrl.Result{}, errors.Wrapf(err, "failed to get bootstrap token secret in order to refresh it")
}
log = log.WithValues("secretName", secret.Name)
log = log.WithValues("Secret", klog.KObj(secret))

secretExpiration := bootstrapsecretutil.GetData(secret, bootstrapapi.BootstrapTokenExpirationKey)
if secretExpiration == "" {
Expand Down

0 comments on commit b620426

Please sign in to comment.