You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7f3a45a
Browse filesBrowse the repository at this point in the historyBrowse files
// ExpandSecretRefs prefixes its error with the reference text; the
107
-
// operator already knows which field this is, so report the cause only.
108
-
ifcause:=errors.Unwrap(err); cause!=nil {
109
-
err=cause
110
-
}
111
-
returnfmt.Errorf("api_key: could not resolve the reference: %w", err)
106
+
// The error is deliberately a fixed sentence: ExpandSecretRefs' own
107
+
// text quotes the reference, and the api_key field is the one value
108
+
// no error or log line may carry. The operator knows which field it is.
109
+
returnerrors.New("api_key: could not resolve the secret reference; check that the referenced file, environment variable or keyring entry exists and is readable")
112
110
}
113
111
ifresolved=="" {
114
112
returnfmt.Errorf("api_key: the reference resolved to an empty value")
0 commit comments