-
Notifications
You must be signed in to change notification settings - Fork 169
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
feat: provide std.native('helmTemplate') #336
Conversation
ac0e746
to
67bda43
Compare
Example: ``` { generated: std.native('helmTemplate')( 'cert-manager', 'charts/jetstack/cert-manager', { values: { installCRDs: true, global: { podSecurityPolicy: { enabled: true, useAppArmor: false, }, }, }, flags: [ '--version=v0.13.0', ], } ), } ```
67bda43
to
5934a80
Compare
|
||
func confToArgs(conf map[string]interface{}) ([]string, []string, error) { | ||
var args []string | ||
var tempFiles []string |
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.
You only ever add one file this this, right? No need for a slice then
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 optimizing for future cases where we might want to pass multiple files (it is possible to have multiple --values with helm template
) and can easily extend this without having to change this elsewhere. If you don't see value in this, I'll remove it.
This is so cool I can't contain my excitement. I'm going to start a pr in deployment_tools that depend on this functionality and trust that it will get merged into a release in the near future. |
Even though this isn't the right naming, it is consistent with https://tanka.dev/env-vars Co-authored-by: sh0rez <[email protected]>
Co-authored-by: sh0rez <[email protected]>
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.
Wow ❤️ 🚀
I've taken the same approach as to how the
helm template
command is build up:original PoC: grafana/jsonnet-libs#315