Fixing documentation to be correct for Kubernetes

Converted from openshift command
This commit is contained in:
Per Abich 2018-09-05 17:28:18 +02:00 committed by GitHub
parent 7df14ef767
commit 5e95ea2ffe
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ Kubernetes:
```sh
# 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
$ kubectl create -f deploy/rbac.yaml
```