diff --git a/pkg/util/auth/auth.go b/pkg/util/auth/auth.go index 031effa07c8..661ea070478 100644 --- a/pkg/util/auth/auth.go +++ b/pkg/util/auth/auth.go @@ -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 }