Skip to content

Commit e7f046c

Browse files
vdemeestertekton-robot
authored andcommitted
Add tekton.dev/release annotation to the webhook 🏋
We currently only add this annotation to the controller. Let's also add it to the webhook. We are also adding it to the deployment itself (as a label). Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
1 parent 1119879 commit e7f046c

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

config/controller.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ metadata:
1919
labels:
2020
app.kubernetes.io/name: tekton-pipelines
2121
app.kubernetes.io/component: controller
22+
tekton.dev/release: "devel"
2223
spec:
2324
replicas: 1
2425
selector:

config/webhook.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ metadata:
2323
labels:
2424
app.kubernetes.io/name: tekton-pipelines
2525
app.kubernetes.io/component: webhook-controller
26+
tekton.dev/release: "devel"
2627
spec:
2728
replicas: 1
2829
selector:
@@ -32,6 +33,7 @@ spec:
3233
metadata:
3334
annotations:
3435
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
36+
tekton.dev/release: "devel"
3537
labels:
3638
app: tekton-pipelines-webhook
3739
app.kubernetes.io/name: tekton-pipelines

tekton/publish.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ spec:
141141
142142
# Rewrite "devel" to inputs.params.versionTag
143143
sed -i 's/devel/$(inputs.params.versionTag)/g' /workspace/go/src/github.com/tektoncd/pipeline/config/controller.yaml
144+
sed -i 's/devel/$(inputs.params.versionTag)/g' /workspace/go/src/github.com/tektoncd/pipeline/config/webhook.yaml
144145
145146
# Publish images and create release.yaml
146147
ko resolve --preserve-import-paths -t $(inputs.params.versionTag) -f /workspace/go/src/github.com/tektoncd/pipeline/config/ > /workspace/output/bucket/latest/release.yaml

0 commit comments

Comments
 (0)