Skip to content

Commit 5d3dc52

Browse files
Pega88bharathkkb
andauthored
fix: Asm overlay path (terraform-google-modules#921)
* 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 <[email protected]>
1 parent f3ddbf5 commit 5d3dc52

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/asm/scripts/install_asm.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ item="${OPTIONS[*]}";OPTIONS_COMMAND=$(echo "--option" "${item// / --option }")
7979
echo -e "OPTIONS_COMMAND is $OPTIONS_COMMAND"
8080
echo -e "CUSTOM_OVERLAYS array length is ${#CUSTOM_OVERLAYS[@]}"
8181
# Create custom_overlays command snippet
82-
item="${CUSTOM_OVERLAYS[*]}";CUSTOM_OVERLAYS_COMMAND=$(echo "--custom_overlay" "${item// / --custom_overlay }")
82+
if [[ "${CUSTOM_OVERLAYS[*]}" == "none" ]]; then
83+
CUSTOM_OVERLAYS_COMMAND="--custom_overlay none"
84+
else
85+
item="${CUSTOM_OVERLAYS[*]}";CUSTOM_OVERLAYS_COMMAND=$(echo "--custom_overlay" "$(pwd)/${item// / --custom_overlay $(pwd)/}")
86+
fi
8387
echo -e "CUSTOM_OVERLAYS_COMMAND is $CUSTOM_OVERLAYS_COMMAND"
8488
echo -e "ENABLE_ALL is $ENABLE_ALL"
8589
echo -e "ENABLE_CLUSTER_ROLES is $ENABLE_CLUSTER_ROLES"

0 commit comments

Comments
 (0)