Skip to content

Commit

Permalink
Add pipelines and triggers namespace flags to openshift overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-edouard.breteche authored and tekton-robot committed Jun 10, 2020
1 parent cb92ae0 commit ca2e27c
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ To install Tekton Dashboard on an OpenShift cluster:

Congratulations! You have successfully installed Tekton Dashboard on your OpenShift cluster.

**Note for users installing Tekton Pipelines and Triggers outside the OpenShift Pipelines operator:**

Tekton Dashboard on OpenShift works out of the box with the OpenShift Pipelines operator. If you installed Tekton Pipelines and Triggers without using the OpenShift Pipelines operator, you will need to change the following args `--pipelines-namespace=openshift-pipelines` and `--triggers-namespace=openshift-pipelines` and set their values to the namespace where Pipelines and Triggers were respectively deployed.

## Accessing the Dashboard on Kubernetes

By default, the Dashboard is not exposed outside the cluster.
Expand Down
7 changes: 7 additions & 0 deletions overlays/dev-openshift-imagestream/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ patchesJson6902:
name: tekton-dashboard
namespace: tekton-pipelines
path: ../logout/deployment-patch.yaml
- target:
group: apps
version: v1
kind: Deployment
name: tekton-dashboard
namespace: tekton-pipelines
path: ../openshift-patches/flags-deployment.yaml
images:
- name: dashboardImage
newName: tekton-pipelines/tekton-dashboard
Expand Down
7 changes: 7 additions & 0 deletions overlays/dev-openshift-locked-down/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ patchesJson6902:
name: tekton-dashboard
namespace: tekton-pipelines
path: ../logout/deployment-patch.yaml
- target:
group: apps
version: v1
kind: Deployment
name: tekton-dashboard
namespace: tekton-pipelines
path: ../openshift-patches/flags-deployment.yaml
images:
- name: dashboardImage
newName: github.com/tektoncd/dashboard/cmd/dashboard
Expand Down
7 changes: 7 additions & 0 deletions overlays/dev-openshift/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ patchesJson6902:
name: tekton-dashboard
namespace: tekton-pipelines
path: ../logout/deployment-patch.yaml
- target:
group: apps
version: v1
kind: Deployment
name: tekton-dashboard
namespace: tekton-pipelines
path: ../openshift-patches/flags-deployment.yaml
images:
- name: dashboardImage
newName: github.com/tektoncd/dashboard/cmd/dashboard
Expand Down
7 changes: 7 additions & 0 deletions overlays/latest-openshift-locked-down/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ patchesJson6902:
name: tekton-dashboard
namespace: tekton-pipelines
path: ../logout/deployment-patch.yaml
- target:
group: apps
version: v1
kind: Deployment
name: tekton-dashboard
namespace: tekton-pipelines
path: ../openshift-patches/flags-deployment.yaml
images:
- name: dashboardImage
newName: gcr.io/tekton-nightly/dashboard
Expand Down
7 changes: 7 additions & 0 deletions overlays/latest-openshift/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ patchesJson6902:
name: tekton-dashboard
namespace: tekton-pipelines
path: ../logout/deployment-patch.yaml
- target:
group: apps
version: v1
kind: Deployment
name: tekton-dashboard
namespace: tekton-pipelines
path: ../openshift-patches/flags-deployment.yaml
images:
- name: dashboardImage
newName: gcr.io/tekton-nightly/dashboard
Expand Down
11 changes: 11 additions & 0 deletions overlays/openshift-patches/flags-patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# Openshift Pipelines operator will install Triggers and Pipelines
# in the openshift-pipelines namespace
- op: add
path: /spec/template/spec/containers/0/args/-
value:
--pipelines-namespace=openshift-pipelines
- op: add
path: /spec/template/spec/containers/0/args/-
value:
--triggers-namespace=openshift-pipelines

0 comments on commit ca2e27c

Please sign in to comment.