-
Notifications
You must be signed in to change notification settings - Fork 44
WPB-15594 feat(bundle): add helm dependency chart #769
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
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 |
|---|---|---|
|
|
@@ -52,7 +52,7 @@ rec { | |
| generate-gpg1-key | ||
| # Linting | ||
| shellcheck | ||
|
|
||
| jq | ||
| niv | ||
| nix-prefetch-docker | ||
| ] ++ [ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,13 @@ | |
| # The list is sorted and deduplicated, then printed to stdout. | ||
| set -eou pipefail | ||
|
|
||
| # Ensure we have a single argument | ||
| if [[ ! $# -eq 1 ]]; then | ||
| echo "usage: $0 chart_images" >&2 | ||
| exit 1 | ||
| fi | ||
| chart_images=$1 | ||
|
|
||
| # Some of these images don't contain a "latest" tag. We don't to download /ALL/ | ||
| # of them, but only :latest in that case - it's bad enough there's no proper | ||
| # versioning here. | ||
|
|
@@ -35,5 +42,10 @@ while IFS= read -r chart; do | |
| --set federate.dtls.tls.crt=emptyString \ | ||
| $( [[ -f ./values/$(basename $chart)/prod-values.example.yaml ]] && echo "-f ./values/$(basename $chart)/prod-values.example.yaml" ) \ | ||
| $( [[ -f ./values/$(basename $chart)/prod-secrets.example.yaml ]] && echo "-f ./values/$(basename $chart)/prod-secrets.example.yaml" ) \ | ||
| | yq -r '..|.image? | select(.)' | optionally_complain | sort -u | ||
| | yq -r '..|.image? | select(.)' | optionally_complain | sort -u > /tmp/images | ||
|
|
||
| echo "${chart}" >> "${chart_images}" | ||
|
Member
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. this looks pretty hacky to me.
Contributor
Author
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. this is just a temp file where i am redirecting the output for each chart. I can try storing it in a var but since there has been many redirections happening in this command, i redirected the output to one temp file. How do you suggest to handle this output? |
||
| cat /tmp/images >> "${chart_images}" | ||
| echo "\n" >> "${chart_images}" | ||
| cat /tmp/images | ||
| done | sort -u | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack, will consider it in the PR for refractor