Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Antonin Bas <antonin.bas@gmail.com>
  • Loading branch information
hangyan and antoninbas authored Nov 6, 2024
1 parent 2af6c6a commit eed61db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func GetAuthConfigurationFromSecret(ctx context.Context, authType AuthType, secr
parseAuthValue := func(secretData map[string][]byte, key string) (string, error) {
authValue, found := secret.Data[key]
if !found {
return "", fmt.Errorf("not found authentication in Secret %s/%s with key %s", secretRef.Namespace, secretRef.Name, key)
return "", fmt.Errorf("missing key %q in authentication Secret %s/%s", key, secretRef.Namespace, secretRef.Name)
}
return string(authValue), nil
}
Expand Down

0 comments on commit eed61db

Please sign in to comment.