File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33helm_update () {
44 if [ " $HELM " == " helm_v3" ]; then
5- LINE=" $( $HELM ls --all -f " ^$NAME \$ " --output json | jq -r " $JQ_CMD " | tr ' [:upper:]' ' [:lower:]' ) "
5+ LINE=" $( $HELM ls --all-namespaces --all -f " ^$NAME \$ " --output json | jq -r " $JQ_CMD " | tr ' [:upper:]' ' [:lower:]' ) "
66 else
77 LINE=" $( $HELM ls --all " ^$NAME \$ " --output json | jq -r " $JQ_CMD " | tr ' [:upper:]' ' [:lower:]' ) "
88 fi
@@ -30,13 +30,13 @@ helm_update() {
3030 $HELM " $@ " $NAME_ARG $NAME $CHART $VALUES
3131 exit
3232 fi
33- if [ -z " $VERSION " ] || [ " $INSTALLED_VERSION " = " $VERSION " ] ; then
34- if [ " $STATUS " = " deployed" ] ; then
35- echo Already installed $NAME , upgrading
36- shift 1
37- $HELM $@ upgrade $NAME $CHART $VALUES
38- exit
39- fi
33+
34+ # Upgrade only if the status is already deployed
35+ if [ " $STATUS " = " deployed " ] ; then
36+ echo Already installed $NAME , upgrading
37+ shift 1
38+ $HELM upgrade $NAME $CHART $VALUES
39+ exit
4040 fi
4141
4242 if [ " $STATUS " = " failed" ] || [ " $STATUS " = " deleted" ]; then
You can’t perform that action at this time.
0 commit comments