-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to have write custom files during TF tests for specialize…
…d configurations (#4132) Signed-off-by: rancher-max <[email protected]>
- Loading branch information
1 parent
0a1f395
commit c4ed8d8
Showing
7 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ | |
/build | ||
.vagrant/ | ||
.DS_Store | ||
go.work* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
# This script pulls raw files and writes to specified locations. | ||
# For example, it can be used to write HelmChartConfig or custom PSA files. | ||
|
||
|
||
files=$1 | ||
|
||
if [ -n "$files" ] | ||
then | ||
file_array=($(echo "$files" | tr ' ' '\n')) | ||
for current_file in "${file_array[@]}"; do | ||
file_location=$(echo "$current_file" | awk -F, '{print $1}') | ||
mkdir -p "$(dirname "$file_location")" | ||
|
||
raw_data=$(echo "$current_file" | awk -F, '{print $2}') | ||
curl -s "$raw_data" -o "$file_location" | ||
done | ||
|
||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters