Skip to content

Commit

Permalink
Set INSTALLER_PULLSPEC dynamically using the extracted OpenShift vers…
Browse files Browse the repository at this point in the history
…ion to ensure accurate deployment configurations

fixed the env
  • Loading branch information
shubhadapaithankar committed Aug 14, 2024
1 parent 90b0ea3 commit 1b12497
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# use unique prefix for Azure resources when it is set, otherwise use your user's name
export AZURE_PREFIX="${AZURE_PREFIX:-$USER}"
export LOCATION=westeurope
export ARO_IMAGE=arointsvc.azurecr.io/aro:latest
export NO_CACHE=false
export AZURE_EXTENSION_DEV_SOURCES="$(pwd)/python"

Expand Down
4 changes: 2 additions & 2 deletions hack/setup_resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ fi
# Extract version and pullspec from const.go
OPENSHIFT_VERSION=$(awk -F'[(,)]' '/NewVersion/ {gsub(/ /, ""); print $2"."$3"."$4; exit}' "$CONST_GO_PATH")
OCP_PULLSPEC=$(awk -F'"' '/PullSpec:/ {print $2; exit}' "$CONST_GO_PATH")
INSTALLER_PULLSPEC="arointsvc.azurecr.io/aro-installer:release-$OPENSHIFT_VERSION"

# Print the fetched values for verification
# Set the INSTALLER_PULLSPEC
INSTALLER_PULLSPEC="arointsvc.azurecr.io/aro-installer:release-$OPENSHIFT_VERSION"
echo "Using OpenShift version: $OPENSHIFT_VERSION"
echo "Using OCP_PULLSPEC: $OCP_PULLSPEC"
echo "Using INSTALLER_PULLSPEC: $INSTALLER_PULLSPEC"
Expand Down

0 comments on commit 1b12497

Please sign in to comment.