Skip to content

Commit 0c2f263

Browse files
authored
Use helm status rather than helm list and grep (#3536)
1 parent 59e39c6 commit 0c2f263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kubernetes/samples/charts/util/setupLoadBalancer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ createTraefik() {
205205
fi
206206

207207
# load the extra set of helm values if provided thru file using -p option
208-
if [ "$(helm list -q -n ${ns} | grep $chart | wc -l)" = 0 ]; then
208+
if [ "$(helm status ${chart} -n ${ns})" != 0 ]; then
209209
printInfo "Installing Traefik controller on namespace ${ns}"
210210
purgeDefaultResources || true
211211
helm install $chart traefik/traefik --namespace ${ns} \

0 commit comments

Comments
 (0)