helm: remove function keyword

Getting rid of function keyword for two reasons:
1. Defining a function without 'function' keyword is more
   portable as it is compatible with Bourne/Korn/POSIX scripts
2. To ensure the coding style is same for the file.

Signed-off-by: Yug <yuggupta27@gmail.com>
(cherry picked from commit e47738fa75)
This commit is contained in:
Yug 2021-06-22 18:12:23 +05:30 committed by mergify[bot]
parent ad5eb89243
commit d8d46575a1

View File

@ -42,7 +42,7 @@ usage() {
echo " " >&2 echo " " >&2
} }
function check_deployment_status() { check_deployment_status() {
LABEL=$1 LABEL=$1
NAMESPACE=$2 NAMESPACE=$2
echo "Checking Deployment status for label $LABEL in Namespace $NAMESPACE" echo "Checking Deployment status for label $LABEL in Namespace $NAMESPACE"
@ -66,7 +66,7 @@ function check_deployment_status() {
fi fi
} }
function check_daemonset_status() { check_daemonset_status() {
LABEL=$1 LABEL=$1
NAMESPACE=$2 NAMESPACE=$2
echo "Checking Daemonset status for label $LABEL in Namespace $NAMESPACE" echo "Checking Daemonset status for label $LABEL in Namespace $NAMESPACE"