We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b66e5f6 commit d262cbbCopy full SHA for d262cbb
1 file changed
hooks/helmlint.sh
@@ -112,14 +112,17 @@ helm_lint_opts=""
112
files=()
113
114
handle_options() {
115
- while [ $# -gt 0 ]; do
+ while(($#)) ; do
116
case $1 in
117
--kube-version)
118
- helm_lint_opts+="$1 $2"
+ helm_lint_opts+="$1 $2 "
119
shift
120
;;
121
+ --strict)
122
+ helm_lint_opts+="$1 "
123
+ ;;
124
*)
- files+=( "$1" )
125
+ files+=("$1")
126
127
esac
128
@@ -129,7 +132,7 @@ handle_options() {
129
132
handle_options "$@"
130
133
debug "Passed args: $helm_lint_opts"
131
134
-for file in "$@"; do
135
+for file in "${files[@]}"; do
136
debug "Checking $file"
137
file_chart_path=$(chart_path "$file")
138
debug "Resolved $file to chart path $file_chart_path"
0 commit comments