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
Error from server (BadRequest): error when creating "/Users/leebernick/tkndefs/clustertask/v1pipelinerun.yaml": admission webhook "validation.webhook.pipeline.tekton.dev" denied the request: validation failed: invalid value: custom task ref must specify apiVersion: spec.tasks[0].taskRef.apiVersion
Labeling this as a bug since our docs are inconsistent with implementation, and TaskRef is inconsistent between TaskRun and PipelineRun (a separate issue #6557 was created for TaskRun taskrefs, but in hindsight I think it would have been better to treat all TaskRefs the same).
I think we need to decide whether ClusterTasks can be referenced from v1 TaskRefs (I vote yes).
If so, we should fix this validation. There shouldn't be any work required when swapping the v1 storage version, i.e. I don't think we need to reopen #6552, since we should be able to update this function here to convert a clustertask into a v1 Task instead of a v1beta1 Task. (FYI @JeromeJu@dibyom)
If not, we need to update docs and disallow clustertask references in validation. I'm not sure if we want to clarify the error message returned here, or whether we'd want to treat kind "ClusterTask" as a custom task reference (this could be a bit confusing). Note that ClusterTask support cannot be removed until July.
The text was updated successfully, but these errors were encountered:
I think we need to decide whether ClusterTasks can be referenced from v1 TaskRefs (I vote yes).
Yes, we need to support this since the earliest EOL for cluster tasks is July.
If so, we should fix this validation. There shouldn't be any work required when swapping the v1 storage version, i.e. I don't think we need to reopen #6552, since we should be able to update this function here to convert a clustertask into a v1 Task instead of a v1beta1 Task. (FYI @JeromeJu@dibyom)
Is it because we didn't add cluster task in v1's validation funciton?:
// taskKinds contains the kinds when the apiVersion is not set, they are not custom tasks,
// if apiVersion is set they are custom tasks.
taskKinds := map[TaskKind]bool{
"": true,
NamespacedTaskKind: true,
ClusterTaskKind: true,
}
I added at first but @jerop said we don't have cluster task in v1.
To address this issue I think we need to add it right?
Our docs state that "a v1beta1 clustertask can still be referenced in a v1 pipeline".
The following taskrun succeeds:
However, the following Pipeline cannot be created, even though the TaskRef is the same:
Error message is
(introduced in #6505) -- fyi @jerop @Yongxuanzhang.
Labeling this as a bug since our docs are inconsistent with implementation, and TaskRef is inconsistent between TaskRun and PipelineRun (a separate issue #6557 was created for TaskRun taskrefs, but in hindsight I think it would have been better to treat all TaskRefs the same).
I think we need to decide whether ClusterTasks can be referenced from v1 TaskRefs (I vote yes).
If so, we should fix this validation. There shouldn't be any work required when swapping the v1 storage version, i.e. I don't think we need to reopen #6552, since we should be able to update this function here to convert a clustertask into a v1 Task instead of a v1beta1 Task. (FYI @JeromeJu @dibyom)
If not, we need to update docs and disallow clustertask references in validation. I'm not sure if we want to clarify the error message returned here, or whether we'd want to treat kind "ClusterTask" as a custom task reference (this could be a bit confusing). Note that ClusterTask support cannot be removed until July.
The text was updated successfully, but these errors were encountered: