Skip to content

Commit

Permalink
Merge pull request #606 from mbaldessari/disconnected-easier
Browse files Browse the repository at this point in the history
Introduce PATTERN_DISCONNECTED_HOME
  • Loading branch information
mbaldessari authored Oct 7, 2024
2 parents 07f6584 + e9f638a commit 7a17712
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/pattern-util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ function version {
if [ -z "$PATTERN_UTILITY_CONTAINER" ]; then
PATTERN_UTILITY_CONTAINER="quay.io/hybridcloudpatterns/utility-container"
fi
# If PATTERN_DISCONNECTED_HOME is set it will be used to populate both PATTERN_UTILITY_CONTAINER
# and PATTERN_INSTALL_CHART automatically
if [ -n "${PATTERN_DISCONNECTED_HOME}" ]; then
PATTERN_UTILITY_CONTAINER="${PATTERN_DISCONNECTED_HOME}/utility-container"
PATTERN_INSTALL_CHART="oci://${PATTERN_DISCONNECTED_HOME}/pattern-install"
echo "PATTERN_DISCONNECTED_HOME is set to ${PATTERN_DISCONNECTED_HOME}"
echo "Setting the following variables:"
echo " PATTERN_UTILITY_CONTAINER: ${PATTERN_UTILITY_CONTAINER}"
echo " PATTERN_INSTALL_CHART: ${PATTERN_INSTALL_CHART}"
fi

readonly commands=(podman)
for cmd in ${commands[@]}; do is_available "$cmd"; done
Expand Down Expand Up @@ -81,6 +91,7 @@ podman run -it --rm --pull=newer \
-e VALUES_SECRET \
-e KUBECONFIG \
-e PATTERN_INSTALL_CHART \
-e PATTERN_DISCONNECTED_HOME \
-e K8S_AUTH_HOST \
-e K8S_AUTH_VERIFY_SSL \
-e K8S_AUTH_SSL_CA_CERT \
Expand Down

0 comments on commit 7a17712

Please sign in to comment.