Skip to content

Commit

Permalink
fix: Asm overlay path (#921)
Browse files Browse the repository at this point in the history
* use absolute path for overlay files similar to service account key file

* fix for multiple files

* fix for multiple files

* fix for multiple files

* fix for multiple files

* fix for multiple files

* fix for none

Co-authored-by: Bharath KKB <bharathkrishnakb@gmail.com>
  • Loading branch information
Pega88 and bharathkkb committed Jun 8, 2021
1 parent f3ddbf5 commit 5d3dc52
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/asm/scripts/install_asm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ item="${OPTIONS[*]}";OPTIONS_COMMAND=$(echo "--option" "${item// / --option }")
echo -e "OPTIONS_COMMAND is $OPTIONS_COMMAND"
echo -e "CUSTOM_OVERLAYS array length is ${#CUSTOM_OVERLAYS[@]}"
# Create custom_overlays command snippet
item="${CUSTOM_OVERLAYS[*]}";CUSTOM_OVERLAYS_COMMAND=$(echo "--custom_overlay" "${item// / --custom_overlay }")
if [[ "${CUSTOM_OVERLAYS[*]}" == "none" ]]; then
CUSTOM_OVERLAYS_COMMAND="--custom_overlay none"
else
item="${CUSTOM_OVERLAYS[*]}";CUSTOM_OVERLAYS_COMMAND=$(echo "--custom_overlay" "$(pwd)/${item// / --custom_overlay $(pwd)/}")
fi
echo -e "CUSTOM_OVERLAYS_COMMAND is $CUSTOM_OVERLAYS_COMMAND"
echo -e "ENABLE_ALL is $ENABLE_ALL"
echo -e "ENABLE_CLUSTER_ROLES is $ENABLE_CLUSTER_ROLES"
Expand Down

0 comments on commit 5d3dc52

Please sign in to comment.