From 2bcb474770a455fba875939c11128a5a839d6ba8 Mon Sep 17 00:00:00 2001 From: Per Abich <409466+flyhard@users.noreply.github.com> Date: Wed, 5 Sep 2018 17:28:18 +0200 Subject: [PATCH] Fixing documentation to be correct for Kubernetes Converted from openshift command (cherry picked from commit 5e95ea2ffe5c8205edd2a6425ea666dd44d90311) --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4967ba49..3ce3fd3e 100644 --- a/README.md +++ b/README.md @@ -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 ```