Skip to content

Commit

Permalink
Update OpenShift pipelines-install instruction…
Browse files Browse the repository at this point in the history
The current documentation doesn't work with OpenShift because of the
`securityContext.runAsUser` that comes in the way of the default
behavior of OpenShift. This fixes that.

Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Feb 10, 2023
1 parent 50d18af commit abf82ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion content/en/vendor/redhat/pipelines-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ Constraints][security-con] for more information.
```
1. Install Tekton Pipelines:

Because OpenShift uses random user id (and user id range per namespace) for pods, we need to remove the `securityContext.runAsUser` and `securityContext.runAsGroup` from any container from the release.yaml.

```bash
oc apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.notags.yaml
curl https://storage.googleapis.com/tekton-releases/pipeline/latest/release.notags.yaml | yq 'del(.spec.template.spec.containers[].securityContext.runAsUser, .spec.template.spec.containers[].securityContext.runAsGroup)' | oc apply -f -
```


See the [OpenShift CLI documentation][openshift-cli] for more information on
the `oc` command.

Expand Down

0 comments on commit abf82ef

Please sign in to comment.