Skip to content

Commit

Permalink
Add tekton.dev/release annotation to the webhook 🏋
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
vdemeester authored and tekton-robot committed Jan 27, 2020
1 parent 84368ae commit a222d2e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ metadata:
labels:
app.kubernetes.io/name: tekton-pipelines
app.kubernetes.io/component: controller
tekton.dev/release: "devel"
spec:
replicas: 1
selector:
Expand Down
2 changes: 2 additions & 0 deletions config/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ metadata:
labels:
app.kubernetes.io/name: tekton-pipelines
app.kubernetes.io/component: webhook-controller
tekton.dev/release: "devel"
spec:
replicas: 1
selector:
Expand All @@ -32,6 +33,7 @@ spec:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
tekton.dev/release: "devel"
labels:
app: tekton-pipelines-webhook
app.kubernetes.io/name: tekton-pipelines
Expand Down
1 change: 1 addition & 0 deletions tekton/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ spec:
# Rewrite "devel" to inputs.params.versionTag
sed -i 's/devel/$(inputs.params.versionTag)/g' /workspace/go/src/github.com/tektoncd/pipeline/config/controller.yaml
sed -i 's/devel/$(inputs.params.versionTag)/g' /workspace/go/src/github.com/tektoncd/pipeline/config/webhook.yaml
# Publish images and create release.yaml
ko resolve --preserve-import-paths -t $(inputs.params.versionTag) -f /workspace/go/src/github.com/tektoncd/pipeline/config/ > /workspace/output/bucket/latest/release.yaml
Expand Down

0 comments on commit a222d2e

Please sign in to comment.