Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola committed Oct 4, 2023
1 parent e4d0b52 commit c8299e9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/cluster/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ func RotateBootstrapToken(ctx context.Context, config *config.Control, oldToken
if err := wait.PollImmediateUntilWithContext(ctx, 5*time.Second, func(ctx context.Context) (bool, error) {
bootstrapList, err = storageClient.List(ctx, "/bootstrap", 0)
if err != nil {
if errors.Is(err, rpctypes.ErrGPRCNotSupportedForLearner) {
return false, nil
}
return false, err
}
return true, nil
Expand All @@ -59,7 +56,7 @@ func RotateBootstrapToken(ctx context.Context, config *config.Control, oldToken
if err != nil {
return err
}
// resuse the existing migration function to reencrypt bootstrap data with new token
// reuse the existing migration function to reencrypt bootstrap data with new token
if err := migrateTokens(ctx, bootstrapList, storageClient, "", tokenKey, normalizedToken, normalizedOldToken); err != nil {
return err
}
Expand Down

0 comments on commit c8299e9

Please sign in to comment.