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

pkg/gotohelm: implement go to helm transpiler #1063

Merged
merged 1 commit into from
Mar 22, 2024
Merged

Conversation

chrisseto
Copy link
Contributor

@chrisseto chrisseto commented Feb 28, 2024

This commit introduces the gotohelm and helmette packages. The
combination of which implement a golang to helm template transpiler.

Equivalence between the go functions and helm templates is asserted for
all test cases. There is no harness for doing so outside of the test
environment, consumers will need to perform this assertion themselves.

See gotohelm/doc.go for details on the transpiler and helmette/doc.go
for details on the "helm in go" environment.

gotohelm/testdata contains examples of the transpiled templates.

@chrisseto chrisseto force-pushed the chris/go-to-helm branch 2 times, most recently from d2d8237 to b5e36f4 Compare March 8, 2024 20:17
@chrisseto chrisseto marked this pull request as ready for review March 8, 2024 20:17
@chrisseto chrisseto changed the title WIP: Go to Helm pkg/gotohelm: implement go to helm transpiler Mar 8, 2024
@chrisseto
Copy link
Contributor Author

@alejandroEsc I'd like to merge this so I can start putting up my translation PRs. Would you like to review it in PR form or would you be okay with retroactively reading through the module?

This commit introduces the gotohelm and helmette packages. The
combination of which implement a golang to helm template transpiler.

Equivalence between the go functions and helm templates is asserted for
all test cases. There is no harness for doing so outside of the test
environment, consumers will need to perform this assertion themselves.

See gotohelm/doc.go for details on the transpiler and helmette/doc.go
for details on the "helm in go" environment.

gotohelm/testdata contains examples of the transpiled templates.
@chrisseto chrisseto merged commit bfb4e55 into main Mar 22, 2024
3 checks passed
@chrisseto chrisseto deleted the chris/go-to-helm branch March 22, 2024 19:16
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants