From e2139a072cdf20d1919414d8a64d51e6f3e9fc50 Mon Sep 17 00:00:00 2001 From: Zhe Huang Date: Wed, 6 May 2020 13:24:58 -0400 Subject: [PATCH] Add RBAC roles, fix DANM network bugs Signed-off-by: Zhe Huang Change-Id: I49a7745ded13c248bdfc704d7c1d169c817b1482 --- ric-aux/bin/install | 77 +++++++++++++++++++++- .../subcharts/danm-networks/templates/danm.yaml | 4 +- ric-dep | 2 +- 3 files changed, 78 insertions(+), 5 deletions(-) diff --git a/ric-aux/bin/install b/ric-aux/bin/install index 917c9420..8a1e8494 100755 --- a/ric-aux/bin/install +++ b/ric-aux/bin/install @@ -86,10 +86,11 @@ for f in $NODENAME; do LABEL=$(kubectl describe node $f | grep "local-storage=enable") if [ ! -z "$LABEL" ]; then LABELFOUND=true + echo "Found lable \"local-storage=enable\" at node $f" fi done -FOUND_STORAGECLASS=$(grep storageclass $OVERRIDEYAML) +FOUND_STORAGECLASS=$(grep -w storageclass $OVERRIDEYAML) if ! $LABELFOUND && [ -z "$FOUND_STORAGECLASS" ]; then @@ -138,6 +139,7 @@ for f in $NODENAME; do LABEL=$(kubectl describe node $f | grep "portal-storage=enable") if [ ! -z "$LABEL" ]; then LABELFOUND=true + echo "Found lable \"portal-storage=enable\" at node $f" fi done @@ -167,6 +169,7 @@ fi + echo Add cluster roles cat >ricaux-role.yaml <