[v0.44.x] Conversion webhook is misbehaving on kubectl patch
#6443
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/critical-urgent
Highest priority. Must be actively worked on as someone's top priority right now.
Expected Behavior
When doing a
kubectl patch
to add an annotation on av1
type (likePipelineRun
), I expect it to keep the existing annotations.Actual Behavior
When doing a
kubectl patch
to add an annotation on av1
type (likePipelineRun
), the existing annotations are gone, which is a big problem when usingembedded-status: both
, astekton.dev/v1beta1Taskruns
being gone, we are loosing some data.Steps to Reproduce the Problem
v0.44.x
on a clusterfeature-flags
configmap to setembedded-status: both
PipelineRun
,kubectl create -f ./examples/v1beta1/pipelineruns/pipelinerun.yaml
k get v1beta1.pipelinerun.tekton.dev/demo-pipeline-run-1 -o yaml
once finished, and look at thestatus.taskRuns
being populatedPipelineRun
usingkubectl patch pr demo-pipeline-run-1 --type='json' -p='[{"op": "add", "path": "/metadata/annotations/foo", "value":"bar"}]'
v1beta1
PipelineRun
usingk get v1beta1.pipelinerun.tekton.dev/demo-pipeline-run-1 -o yaml
and see that we do not have thestatus.taskRuns
anymoreAdditional Info
Tekton Pipeline version:
Output of
tkn version
orkubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'
The text was updated successfully, but these errors were encountered: