-
Notifications
You must be signed in to change notification settings - Fork 21
Handle multiple backends for the TypeInstance #657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
15698eb
49634a3
d87db66
bbfc2b8
b5eb0f2
abe8522
5cd86f4
6d0e3f6
37c4a50
ac92303
7f663c7
e902da7
dca5f7c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,10 +3,16 @@ | |
| SRC=${SRC:-"/yamls"} | ||
| OUT=${OUT:-"/merged.yaml"} | ||
|
|
||
| # prefix each file with its filename | ||
| for filename in "${SRC}"/*; do | ||
| filename=$(basename -- "$filename") | ||
| prefix="${filename%.*}" | ||
|
|
||
| # remove value key if exists | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency reason, it would be good to also have But let's do that on a new follow-up PR. It's not a blocker for merging this one 👍 |
||
| if [[ $(yq e 'has("value")' "${SRC}"/"${filename}") == "true" ]]; then | ||
| yq e '.value' -i "${SRC}"/"${filename}" | ||
| fi | ||
|
|
||
| # prefix each file with its filename | ||
| yq e -i "{\"${prefix}\": . }" "${SRC}"/"${filename}" | ||
| done | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.