-
Notifications
You must be signed in to change notification settings - Fork 7
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
Can not patch pipelinerun labels #44
Comments
@otaviof can u help here? |
Let me have a look at it, please. /assign @otaviof |
I can not reproduce it now, not sure what's happen.
lan@lan:~/server/cdf/shipwright/yamls$ k get buildrun -A
NAMESPACE NAME SUCCEEDED REASON STARTTIME COMPLETIONTIME
default trigger-nmrmk Error on shipwright-build: {"level":"error","ts":1684317447.3220704,"logger":"controller.buildrun-controller","msg":"Reconciler error","name":"trigger-nmrmk","namespace":"default","error":"admission webhook \"validation.webhook.pipeline.tekton.dev\" denied the request: validation failed: non-existent variable in \"$(params.shp-output-directory)\": spec.steps[2].env[PARAM_OUTPUT_DIRECTORY]","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:227"}
{"level":"debug","ts":1684317488.2823372,"logger":"controller.buildrun-controller","msg":"starting reconciling request from a BuildRun or TaskRun event","name":"trigger-nmrmk","namespace":"default","namespace":"default","name":"trigger-nmrmk"}
{"level":"info","ts":1684317488.282584,"logger":"controller.buildrun-controller","msg":"updating BuildRun status","name":"trigger-nmrmk","namespace":"default","namespace":"default","name":"trigger-nmrmk"}
{"level":"info","ts":1684317488.2888117,"logger":"controller.buildrun-controller","msg":"falling back to default serviceAccount","name":"trigger-nmrmk","namespace":"default","namespace":"default"}
{"level":"debug","ts":1684317488.288843,"logger":"controller.buildrun-controller","msg":"retrieving ClusterBuildStrategy","name":"trigger-nmrmk","namespace":"default","namespace":"default","name":"trigger"}
{"level":"info","ts":1684317488.289151,"logger":"controller.buildrun-controller","msg":"creating TaskRun from BuildRun","name":"trigger-nmrmk","namespace":"default","namespace":"default","name":"trigger-nmrmk-","BuildRun":"trigger-nmrmk"}
{"level":"error","ts":1684317488.3081229,"logger":"controller.buildrun-controller","msg":"Reconciler error","name":"trigger-nmrmk","namespace":"default","error":"admission webhook \"validation.webhook.pipeline.tekton.dev\" denied the request: validation failed: non-existent variable in \"$(params.shp-output-directory)\": spec.steps[2].env[PARAM_OUTPUT_DIRECTORY]","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:227"}
{"level":"debug","ts":1684317570.2287133,"logger":"controller.buildrun-controller","msg":"starting reconciling request from a BuildRun or TaskRun event","name":"trigger-nmrmk","namespace":"default","namespace":"default","name":"trigger-nmrmk"} |
It's some problem of shipwright v0.11.0 work with tekton v0.44.0 , tested shipwright main and it's working. |
Log
Checked
triggers/pkg/filter/label_test.go
Lines 27 to 30 in 8075c09
Seems like this is the design but it's not working.
It is giving pipelinerun patch labels if I understand correctly, just like:
Versions
shipwright build: 0.11.0
tekton: v0.44.0
trigger: main
Reproduce
output.image
in demo.yamloutput.credentials.name
in demo.yaml (maybe not need, have not run this step.)demo.yaml
cc author @otaviof
Remind me if i missed something,Thanks :)
I want to work for it if someone can provide more detail for it and it's the wrong thing.
The text was updated successfully, but these errors were encountered: