Skip to content

Commit

Permalink
Add version label to Service
Browse files Browse the repository at this point in the history
Add the version label to our Service definition and replace
it with `versionTag` in the `publish-tekton-dashboard` Task
as we already do for the Deployment.
  • Loading branch information
AlanGreene authored and tekton-robot committed Apr 8, 2020
1 parent 2c5366e commit 3656ef6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/300-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ metadata:
namespace: tekton-pipelines
labels:
app: tekton-dashboard
version: "devel"
dashboard.tekton.dev/release: "devel"
spec:
ports:
- name: http
Expand Down
2 changes: 2 additions & 0 deletions overlays/openshift-patches/dashboard-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ metadata:
namespace: tekton-pipelines
labels:
app: tekton-dashboard
version: "devel"
dashboard.tekton.dev/release: "devel"
annotations:
service.alpha.openshift.io/serving-cert-secret-name: proxy-tls
spec:
Expand Down
2 changes: 2 additions & 0 deletions overlays/openshift-patches/internal-dashboard-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ metadata:
namespace: tekton-pipelines
labels:
app: tekton-dashboard-internal
version: "devel"
dashboard.tekton.dev/release: "devel"
spec:
ports:
- name: http
Expand Down
3 changes: 3 additions & 0 deletions tekton/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ spec:
# Rewrite "devel" to inputs.params.versionTag
sed -i 's/devel/$(inputs.params.versionTag)/g' /workspace/go/src/github.com/tektoncd/dashboard/base/300-deployment.yaml
sed -i 's/devel/$(inputs.params.versionTag)/g' /workspace/go/src/github.com/tektoncd/dashboard/base/300-service.yaml
sed -i 's/devel/$(inputs.params.versionTag)/g' /workspace/go/src/github.com/tektoncd/dashboard/overlays/openshift-patches/dashboard-service.yaml
sed -i 's/devel/$(inputs.params.versionTag)/g' /workspace/go/src/github.com/tektoncd/dashboard/overlays/openshift-patches/internal-dashboard-service.yaml
# Publish images and create release.yamls
which ko # Tested with 0.2.0
Expand Down

0 comments on commit 3656ef6

Please sign in to comment.