TaskRuns that use ClusterTask can also synchronize Annotations and Labels in v0.56.0
Consistent with the behavior of Pipeline version v0.44.0
Actual Behavior
In version v0.56.0, the behavior of ClusterTask is inconsistent with that of tasks.
And also inconsistent with the behavior of ClusterTask in version v0.44.0.
Client Version: v1.29.0
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.26.0
WARNING: version difference between client (1.29) and server (1.26) exceeds the supported minor version skew of +/-1
Tekton Pipeline version:
Output of tkn version or kubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'
Expected Behavior
TaskRuns that use ClusterTask can also synchronize Annotations and Labels in v0.56.0 Consistent with the behavior of Pipeline version v0.44.0
Actual Behavior
In version v0.56.0, the behavior of ClusterTask is inconsistent with that of tasks. And also inconsistent with the behavior of ClusterTask in version v0.44.0.
Refs
Steps to Reproduce the Problem
test.clustertask.taskrun.yaml
.apiVersion: tekton.dev/v1beta1 kind: Task metadata: name: task-demo namespace: default annotations: foo: bar labels: foo: bar spec: steps:
!/bin/sh
apiVersion: tekton.dev/v1beta1 kind: TaskRun metadata: name: taskrun-task namespace: default spec: taskRef: kind: Task name: task-demo EOF
Testing in Tekton Pipeline v0.44.0 The
taskrun-clustertask
also has the annotations and labels ofclustertask-demo
.kubectl apply -f https://storage.googleapis.com/tekton-releases/pipeline/previous/v0.44.0/release.yaml
cat test.clustertask.taskrun.yaml | kubectl replace --force -f -
kubectl get taskrun -n default taskrun-task taskrun-clustertask -o yaml
Testing in Tekton Pipeline v0.56.0 The
taskrun-clustertask
lacks the annotations and labels ofclustertask-demo
.kubectl apply -f https://storage.googleapis.com/tekton-releases/pipeline/previous/v0.56.0/release.yaml
cat test.clustertask.taskrun.yaml | kubectl replace --force -f -
kubectl get taskrun -n default taskrun-task taskrun-clustertask -o yaml
Additional Info
Kubernetes version:
Output of
kubectl version
: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}'
/kind bug