File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,16 @@ function version {
11
11
if [ -z " $PATTERN_UTILITY_CONTAINER " ]; then
12
12
PATTERN_UTILITY_CONTAINER=" quay.io/hybridcloudpatterns/utility-container"
13
13
fi
14
+ # If PATTERN_DISCONNECTED_HOME is set it will be used to populate both PATTERN_UTILITY_CONTAINER
15
+ # and PATTERN_INSTALL_CHART automatically
16
+ if [ -n " ${PATTERN_DISCONNECTED_HOME} " ]; then
17
+ PATTERN_UTILITY_CONTAINER=" ${PATTERN_DISCONNECTED_HOME} /utility-container"
18
+ PATTERN_INSTALL_CHART=" oci://${PATTERN_DISCONNECTED_HOME} /pattern-install"
19
+ echo " PATTERN_DISCONNECTED_HOME is set to ${PATTERN_DISCONNECTED_HOME} "
20
+ echo " Setting the following variables:"
21
+ echo " PATTERN_UTILITY_CONTAINER: ${PATTERN_UTILITY_CONTAINER} "
22
+ echo " PATTERN_INSTALL_CHART: ${PATTERN_INSTALL_CHART} "
23
+ fi
14
24
15
25
readonly commands=(podman)
16
26
for cmd in ${commands[@]} ; do is_available " $cmd " ; done
@@ -81,6 +91,7 @@ podman run -it --rm --pull=newer \
81
91
-e VALUES_SECRET \
82
92
-e KUBECONFIG \
83
93
-e PATTERN_INSTALL_CHART \
94
+ -e PATTERN_DISCONNECTED_HOME \
84
95
-e K8S_AUTH_HOST \
85
96
-e K8S_AUTH_VERIFY_SSL \
86
97
-e K8S_AUTH_SSL_CA_CERT \
You can’t perform that action at this time.
0 commit comments