Skip to content

Commit

Permalink
fix comment format
Browse files Browse the repository at this point in the history
  • Loading branch information
bdehri committed Dec 23, 2022
1 parent 1889d6d commit 53657a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bootstrap/kubeadm/internal/controllers/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ func refreshToken(ctx context.Context, c client.Client, token string, ttl time.D
func shouldRotate(ctx context.Context, c client.Client, token string, ttl time.Duration) (bool, error) {
secret, err := getToken(ctx, c, token)
if err != nil {
//If the secret is deleted before due to unknown reasons, machine pools cannot be scaled up.
//Since that, secret should be rotated if missing.
//Normally, it is not expected to reach this line.
// If the secret is deleted before due to unknown reasons, machine pools cannot be scaled up.
// Since that, secret should be rotated if missing.
// Normally, it is not expected to reach this line.
if apierrors.IsNotFound(err) {
return true, nil
}
Expand Down

0 comments on commit 53657a6

Please sign in to comment.