We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 344d037 + dcd9b81 commit d644c50Copy full SHA for d644c50
1 file changed
scripts/pattern-util.sh
@@ -25,19 +25,12 @@ fi
25
# $HOME is mounted as itself for any files that are referenced with absolute paths
26
# $HOME is mounted to /root because the UID in the container is 0 and that's where SSH looks for credentials
27
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
-
35
# Do not quote the ${KUBECONF_ENV} below, otherwise we will pass '' to podman
36
# which will be confused
37
podman run -it --rm \
38
--security-opt label=disable \
39
-e EXTRA_HELM_OPTS \
40
- ${KUBECONF_ENV} \
+ -e KUBECONFIG \
41
-v "${HOME}":"${HOME}" \
42
-v "${HOME}":/pattern-home \
43
-v "${HOME}":/root \
0 commit comments