Skip to content
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(helm): Make name format configurable #381

Merged
merged 5 commits into from
Sep 14, 2020
Merged

feat(helm): Make name format configurable #381

merged 5 commits into from
Sep 14, 2020

Conversation

sh0rez
Copy link
Member

@sh0rez sh0rez commented Sep 14, 2020

Makes the key used for the map returned by helmTemplate configurable.

It is now permitted to pass a nameFormat field as part of the opts argument that changes the default name format {{kind}}_{{name}}.

To make helpful features such as lower or snakecase available in the template, https://github.com/Masterminds/sprig was added. This change has also been propagated to the template used in tk export.

Fixes #361

Makes the keys the `helmTemplate` native func uses in the returned map
configurable, by passing `nameFormat` as part of the `opts` argument.
Recently introduces `Masterminds/sprig` is now also available in the
name format of `tk export` to be consistent.
Moves Jsonnet native func related code into jsonnet.go
@sh0rez sh0rez added kind/enhancement Improve something existing component/kubernetes Working with Kubernetes clusters labels Sep 14, 2020
@sh0rez sh0rez merged commit 57106e4 into master Sep 14, 2020
@sh0rez sh0rez deleted the helm-nameformat branch September 14, 2020 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/kubernetes Working with Kubernetes clusters kind/enhancement Improve something existing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Helmraiser creates naming conflicts.
2 participants