Code Review
/
it
/
dep.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
documentation for xapp-onboarding
[it/dep.git]
/
ric-aux
/
bin
/
uninstall
diff --git
a/ric-aux/bin/uninstall
b/ric-aux/bin/uninstall
index
1c8751b
..
5c1834e
100755
(executable)
--- a/
ric-aux/bin/uninstall
+++ b/
ric-aux/bin/uninstall
@@
-34,9
+34,17
@@
RELEASE_PREFIX=$(echo "$COMMON_BLOCK" | awk '/^ *releasePrefix:/{print $2}')
echo "Undeploying AUX components [$COMPONENTS]"
echo "Undeploying AUX components [$COMPONENTS]"
+IS_HELM3=$(helm version -c --short|grep -e "^v3")
+HELM_FLAG=''
+if [ $IS_HELM3 ]
+then
+ HELM_FLAG=' -n '${AUXNAMESPACE:-ricaux}
+else
+ HELM_FLAG='--purge'
+fi
for component in $COMPONENTS; do
for component in $COMPONENTS; do
- helm delete
--purge
${RELEASE_PREFIX}-$component
+ helm delete
${HELM_FLAG}
${RELEASE_PREFIX}-$component
done
kubectl delete cm -n ${AUXNAMESPACE:-ricaux} ricaux-recipe
done
kubectl delete cm -n ${AUXNAMESPACE:-ricaux} ricaux-recipe