Skip to content

Commit d644c50

Browse files
authored
Merge pull request #360 from mbaldessari/script-cleanup
Small pattern.sh cleanup
2 parents 344d037 + dcd9b81 commit d644c50

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

scripts/pattern-util.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,12 @@ fi
2525
# $HOME is mounted as itself for any files that are referenced with absolute paths
2626
# $HOME is mounted to /root because the UID in the container is 0 and that's where SSH looks for credentials
2727

28-
# We must pass -e KUBECONFIG *only* if it is set, otherwise we end up passing
29-
# KUBECONFIG="" which then will confuse ansible
30-
KUBECONF_ENV=""
31-
if [ -n "$KUBECONFIG" ]; then
32-
KUBECONF_ENV="-e KUBECONFIG=${KUBECONFIG}"
33-
fi
34-
3528
# Do not quote the ${KUBECONF_ENV} below, otherwise we will pass '' to podman
3629
# which will be confused
3730
podman run -it --rm \
3831
--security-opt label=disable \
3932
-e EXTRA_HELM_OPTS \
40-
${KUBECONF_ENV} \
33+
-e KUBECONFIG \
4134
-v "${HOME}":"${HOME}" \
4235
-v "${HOME}":/pattern-home \
4336
-v "${HOME}":/root \

0 commit comments

Comments
 (0)