Fixing documentation to be correct for Kubernetes

Converted from openshift command
(cherry picked from commit 5e95ea2ffe)
This commit is contained in:
Per Abich 2018-09-05 17:28:18 +02:00 committed by kmova
parent c4a7e76517
commit 2bcb474770
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ Kubernetes:
```sh ```sh
# Set the subject of the RBAC objects to the current namespace where the provisioner is being deployed # Set the subject of the RBAC objects to the current namespace where the provisioner is being deployed
$ NAMESPACE=`oc project -q` $ NS=$(kubectl config get-contexts|grep -e "^\*" |awk '{print $5}')
$ NAMESPACE=${NS:-default}
$ sed -i'' "s/namespace:.*/namespace: $NAMESPACE/g" ./deploy/rbac.yaml $ sed -i'' "s/namespace:.*/namespace: $NAMESPACE/g" ./deploy/rbac.yaml
$ kubectl create -f deploy/rbac.yaml $ kubectl create -f deploy/rbac.yaml
``` ```