From 9068cd020b16ccb2e7140cc0243d09a6608cedac Mon Sep 17 00:00:00 2001 From: Vincent Hou Date: Mon, 20 May 2019 11:09:12 -0400 Subject: [PATCH] Modify the section about installing in custom namespace We need to replace the default namespace with the desired namespace in order to work. --- DEVELOPMENT.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index bede59270c4..d391233e3a7 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -153,12 +153,13 @@ kubectl create clusterrolebinding cluster-admin-binding \ 1. To install into a different namespace you will need to modify resources in the `./config` folder - - remove all `namespace: tekton` references from all yaml files - - delete the `namespace.yaml` + - modify the `metadata.name` [here](https://github.com/tektoncd/pipeline/blob/c1500fab83b09edadefb38bb8920a0c837d8f32b/config/100-namespace.yaml) + value to the desired namespace - modify the `subjects.namespace` [here](https://github.com/tektoncd/pipeline/blob/c1500fab83b09edadefb38bb8920a0c837d8f32b/config/201-clusterrolebinding.yaml#L21) value to the desired namespace + - look up all the lines with the namespace `namespace: tekton-pipelines`, and set the value to the desired namespace - add `downwardapi` entry to webhook and controller `deployment` resources. E.g. add the environment variable section from the code snippet below to [controller](https://github.com/tektoncd/pipeline/blob/c1500fab83b09edadefb38bb8920a0c837d8f32b/config/controller.yaml#L29)