1
0

Fix namespace and bump to Deployment apps/v1

(cherry picked from commit 846206d609)
This commit is contained in:
remche
2018-12-20 14:06:58 +01:00
committed by kmova
parent 7f85c7b5ff
commit 8c3af96130
4 changed files with 24 additions and 15 deletions

View File

@@ -34,7 +34,7 @@ Kubernetes:
# Set the subject of the RBAC objects to the current namespace where the provisioner is being deployed
$ 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 ./deploy/deployment.yaml
$ kubectl create -f deploy/rbac.yaml
```