-
Notifications
You must be signed in to change notification settings - Fork 334
Make helm-template script use helmfile #2129
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
Conversation
d20a43e to
84bee8d
Compare
84bee8d to
96b08b7
Compare
jschaul
left a comment
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.
Doesn't work.
make helm-template-wire-server
(... snip for brevity...)
/home/user/Documents/git/wire-server/hack/bin/selfsigned-kubernetes.sh: line 29: FEDERATION_DOMAIN_BASE: you must provide a FEDERATION_DOMAIN_BASE env variable
make: *** [Makefile:527: helm-template-wire-server] Error 1
| TOP_LEVEL="$DIR/../.." | ||
| CHARTS_DIR="${TOP_LEVEL}/.local/charts" | ||
| : "${FEDERATION_DOMAIN:=example.com}" | ||
| : "${NAMESPACE:=namespace1}" |
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.
I'm not familiar with this syntax. Is that the same as
NAMESPACE=${NAMESPACE:-"namespace1"}
? i.e. set-to-default-if-not-exists? Or this hardcodes/overrides this variable to always be that?
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.
Yes, it's the same as that. ${x:=foo} sets $x to foo if not set, and returns the value of $x. The colon is just an empty statement. It's a way to evaluate an expression (usually with side effects), without executing any command.
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.
Ok, thanks for the explanations!
|
|
||
| set -e | ||
|
|
||
| chart=${1:?$USAGE} |
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.
what happened to this variable?
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.
I don't know how to render a single chart with helmfile.
|
I think it's useful to be able to template a single chart, rather than "everything". How is this script intended to be used? Some docs would be nice for usage and purpose. |
|
Sorry, I wasn't aware of the
I've been using it by piping the output of the script to |
|
@pcapriotti This PR still does not work (as written in my previous comment) after the latest changes, with or without the makefile target: So I cannot approve this yet, please set the necessary environment variable in the script matching the domain. |
You're right, I hadn't tested this correctly. Should be fixed now. |
|
I'm not sure how to make this usable for everyone, so I'll just move into my own collection of scripts and close the PR. Feel free to reopen if you want to brig this back. |
Adapt the
helm-template.shscript to usehelmfileinstead ofhelmdirectly. After #1805, the values files don't exist anymore, so this PR useshelmfilefor rendering all helm charts using the actual templated values file.Checklist
changelog.d.