summaryrefslogtreecommitdiffstats
path: root/kubernetes/oneclick/createAll.bash
diff options
context:
space:
mode:
authorNicolas Hu <jh245g@att.com>2018-02-01 14:21:32 -0500
committerNicolas Hu <jh245g@att.com>2018-02-01 14:22:59 -0500
commit6ef600ce9d8ab6dd7af3b64363a4d3212ca53036 (patch)
treebffdb435ef0da30d53f31de46acac7d4611b90e6 /kubernetes/oneclick/createAll.bash
parent9a57f4dca77d6c62ff657b33bd381c82b75ef634 (diff)
Fix kube2msb RBAC issue
Change-Id: Ibc731521143579cafbe02edd78305dbe8e6a217b Issue-ID: OOM-645 Signed-off-by: Nicolas Hu <jh245g@att.com>
Diffstat (limited to 'kubernetes/oneclick/createAll.bash')
-rwxr-xr-xkubernetes/oneclick/createAll.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/kubernetes/oneclick/createAll.bash b/kubernetes/oneclick/createAll.bash
index 0240c83e1a..5a99b19623 100755
--- a/kubernetes/oneclick/createAll.bash
+++ b/kubernetes/oneclick/createAll.bash
@@ -86,8 +86,8 @@ create_onap_helm() {
# assign default auth token
if [[ -z $ONAP_DEFAULT_AUTH_TOKEN ]]; then
- DEFAULT_SECRET=`kubectl get secrets -n kube-system | grep default-token | awk '{ print $1}'`
- ONAP_DEFAULT_AUTH_TOKEN=`kubectl get secrets $DEFAULT_SECRET -n kube-system -o yaml | grep 'token:' | awk '{ print $2}' | base64 --decode`
+ DEFAULT_SECRET=`kubectl get secrets -n $1-$2 | grep default-token | awk '{ print $1}'`
+ ONAP_DEFAULT_AUTH_TOKEN=`kubectl get secrets $DEFAULT_SECRET -n $1-$2 -o yaml | grep 'token:' | awk '{ print $2}' | base64 --decode`
fi
cmd=`echo helm install $LOCATION/$2/ --name $1-$2 --namespace $1 --set nsPrefix=$1,nodePortPrefix=$3,kubeMasterAuthToken=$ONAP_DEFAULT_AUTH_TOKEN ${HELM_VALUES_ADDITION}`