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
envFrom validation errors have no entry index, and their paths are garbled when several entries are invalid #16790
The wrong entry is entry 0, but no index is shown, and the path was rewritten by the entries that follow it. With a single bad entry the path has no index at all (...envFrom.configMapRef, ...envFrom.secretRef).
Validate a Service whose container has envFrom: [{prefix: A_}, {secretRef: {name: s}}, {configMapRef: {name: c}}] (first entry has no ref), e.g. Service.Validate in a unit test.
Read the error above.
Cause: in validateEnvFrom (pkg/apis/serving/k8s_validation.go), .ViaIndex(i).ViaField("secretRef") / .ViaField("configMapRef") is chained onto errs.Also(...), i.e. onto all errors collected so far, and the "one of" errors never get ViaIndex(i).
Activity