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
fix: reject TaskRun taskRef with custom task kind but no apiVersion
A TaskRef that sets kind to a non-default value without apiVersion is
not recognized as a Custom Task reference (IsCustomTask requires both
fields), and the resolver ignores the kind entirely: the ref resolves
as an ordinary namespaced Task when one exists, or fails at runtime
with a confusing not-found error. Validate the pairing at admission
time in TaskRef.Validate for v1 and v1beta1, mirroring the custom task
validation Pipelines already perform, and correct the one example that
set a lowercase kind on an ordinary task reference.
Fixes#6557
Signed-off-by: Roshan <rosh.s568@gmail.com>
0 commit comments