-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git resolver can no longer be used in remote pipeline #1318
Comments
that's seem like a case of v1beta1 to v1 conversion issue, @vdemeester any idea ? |
Accordning to https://tekton.dev/docs/pipelines/git-resolver/#requirements enable-api-fields is required to be set to either beta or stable in cm feature-flags. Our feature-flag was set to stable - when I changed it to beta the pipeline works @skv-anders 😄 Though - if I use tkn-pac resolve (we are using version 0.17.2) it translate from
to
and you get the error above when you pipe it to oc create -f -. |
@skv-patrik 👋🏼 The "today's workaround" is to set |
We look forward for the long term fix 😸 |
We are looking at ways to adapt and roll out Tekton Pipelines-As-Code in our organization. We are trying to create a central CI pipeline file where a single team takes responsability for the pipeline code and its tasks, and the other teams invoke it in their respective repos, by referecing it in their local pipelineRun files.
In this concept we want the pipelineRun to contain parameters and a reference to the central pipeline file, but the contents of the pipeline should be opaque, meaning that adding, updating or replacing tasks should be possible without involve updating the pipelineRun file in the teams git repo (or any resources in their namespace).
And this actually worked, until we upgraded to Red Hat OpenShift Pipelines Operator 1.10.3, from 1.9.2.
In each PipelineRun yaml file, one per repo, we have a PipelineRef referring to a Pipeline yaml file in common git repo. Each PipelineRun pass on the built-in parameters that PAC provides, plus some extra options needed by the pipeline. The pipeline file consists of a Pipeline with tasks that each use the git resolver, like this:
Since the upgrade I get this error when the pipeline is triggered:
admission webhook "validation.webhook.pipeline.tekton.dev" denied the request: validation failed: must not set the field(s): spec.pipelineSpec.tasks[0].taskref.params, spec.pipelineSpec.tasks[0].taskref.resolver...
Is this an intended update to remove functionallity or is it a bug?
The text was updated successfully, but these errors were encountered: