Skip to content

Commit

Permalink
Fix env.example Default Values (#3827)
Browse files Browse the repository at this point in the history
* Set Azure prefix and USER as optional at env.example

Follow up commit to use an Azure unique prefix for the Azure resources that ARO-RP is using instead of always fetching the USER. When AZURE_PREFIX env var is not set, then use the USER env var

* Use westeurope as default location

Don't override existed LOCATION env var when it is already set, and 'westeurope' as the default value
  • Loading branch information
razo7 authored and edisonLcardenas committed Sep 18, 2024
1 parent 58af156 commit 7a60187
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions env.example
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# 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 LOCATION="${LOCATION:-westeurope}"
export NO_CACHE=false
export AZURE_EXTENSION_DEV_SOURCES="$(pwd)/python"

export CLUSTER_RESOURCEGROUP="${USER}-v4-$LOCATION"
export CLUSTER_NAME="${USER}-aro-cluster"
export CLUSTER_VNET="${USER}-aro-vnet"
export CLUSTER_RESOURCEGROUP="${AZURE_PREFIX}-v4-$LOCATION"
export CLUSTER_NAME="${AZURE_PREFIX}-aro-cluster"
export CLUSTER_VNET="${AZURE_PREFIX}-aro-vnet"
export ARO_IMAGE=arointsvc.azurecr.io/aro:latest

. secrets/env

0 comments on commit 7a60187

Please sign in to comment.