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>
This commit is contained in:
Yug 2021-06-22 18:12:23 +05:30 committed by mergify[bot]
parent cc72de4b1c
commit e47738fa75

View File

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