Skip to content

Commit

Permalink
change create to get in err
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Helfand <helfand.4@gmail.com>
  • Loading branch information
danielhelfand committed Jun 8, 2022
1 parent e528512 commit 4e1db7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/clusterauth/clusterauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func getOrCreateServiceAccountTokenSecret(clientset kubernetes.Interface, sa, ns
return true, nil
})
if err != nil && err != wait.ErrWaitTimeout {
return "", fmt.Errorf("failed to create serviceaccount token secret: %w", err)
return "", fmt.Errorf("failed to get serviceaccount token secret: %w", err)
}
if serviceAccount == nil {
log.Errorf("Unexpected nil serviceaccount '%s/%s' with no error returned", ns, sa)
Expand Down

0 comments on commit 4e1db7d

Please sign in to comment.