Skip to content

Commit

Permalink
validate additional envs are set
Browse files Browse the repository at this point in the history
  • Loading branch information
mebays committed Jun 13, 2024
1 parent 78d0dd0 commit 247f5af
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions templates/al2/provisioners/install-worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ set -o errexit
IFS=$'\n\t'
export AWS_DEFAULT_OUTPUT="json"

if [[ "$ENABLE_FIPS" == "true" ]]; then
export AWS_USE_FIPS_ENDPOINT="true"
fi

################################################################################
### Validate Required Arguments ################################################
Expand All @@ -30,13 +27,20 @@ validate_env_set CACHE_CONTAINER_IMAGES
validate_env_set CNI_PLUGIN_VERSION
validate_env_set CONTAINERD_VERSION
validate_env_set DOCKER_VERSION
validate_env_set ENABLE_FIPS
validate_env_set KUBERNETES_BUILD_DATE
validate_env_set KUBERNETES_VERSION
validate_env_set PAUSE_CONTAINER_VERSION
validate_env_set PRIVATE_BUCKET
validate_env_set PULL_CNI_FROM_GITHUB
validate_env_set RUNC_VERSION
validate_env_set WORKING_DIR

if [[ "$ENABLE_FIPS" == "true" ]]; then
export AWS_USE_FIPS_ENDPOINT="true"
fi


################################################################################
### Machine Architecture #######################################################
################################################################################
Expand Down

0 comments on commit 247f5af

Please sign in to comment.