echo"Environment file not found: $ENV_FILE. Using default values."
fi
######### POST PROCESSING VARIABLES SET ########
######### POST PROCESSING VARIABLES SET ########
### To deploy in other environment we need to setup urls according to it and also using specific kubeconfig:
### To deploy in other environment we need to setup urls according to it and also using specific kubeconfig:
if[-f"$VAULT_FILE"]&&[-s"$VAULT_FILE"];then
if[-f"$VAULT_FILE"]&&[-s"$VAULT_FILE"];then
@@ -122,8 +150,7 @@ else
fi
fi
echo"Using value on VAULT_ACCESS_TOKEN=$VAULT_ACCESS_TOKEN"
echo"Using value on VAULT_ACCESS_TOKEN=$VAULT_ACCESS_TOKEN"
## Setup KUBECONFIG
export KUBECONFIG=$CUSTOM_KUBECONFIG
### If K8S_IP is empty, then script will try to get ingress-nginx-controller NodePort to grant DNS resolution for register to connect locally to CAPIF nginx
### If K8S_IP is empty, then script will try to get ingress-nginx-controller NodePort to grant DNS resolution for register to connect locally to CAPIF nginx
if["$K8S_IP"=="NONE"];then
if["$K8S_IP"=="NONE"];then
@@ -166,7 +193,7 @@ if [ -n "$CAPIF_STORAGE_ACCESS_MODE" ]; then
"
"
fi
fi
export CAPIF_RUN_AS_USER_CONFIG=""
if["$CAPIF_STORAGE_CLASS"=="longhorn"];then
if["$CAPIF_STORAGE_CLASS"=="longhorn"];then
echo"$CAPIF_STORAGE_CLASS needs to configure runAsUser at mongo, mongo-register and grafana to 0, in order to allow write con PVC created."
echo"$CAPIF_STORAGE_CLASS needs to configure runAsUser at mongo, mongo-register and grafana to 0, in order to allow write con PVC created."