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

gotohelm: Refactor test template executor #1294

Merged
merged 1 commit into from
May 22, 2024

Conversation

chrisseto
Copy link
Contributor

Previously, gotohelm ran "helm" tests via an inline template runner. This muddled what code was performing test assertions and what code was attempting to execute the transpiled templates in a helm-like fashion.

This commit extracts the template execution out into it a runner struct similar to the go runner struct. In the future, we may want to provide direct access to the go runner and helm runner structs to allow transpiled charts to easily test either the gocode path and helm path.

Previously, gotohelm ran "helm" tests via an inline template runner. This
muddled what code was performing test assertions and what code was attempting
to execute the transpiled templates in a helm-like fashion.

This commit extracts the template execution out into it a runner struct similar
to the go runner struct. In the future, we may want to provide direct access to
the go runner and helm runner structs to allow transpiled charts to easily test
either the gocode path and helm path.
@RafalKorepta RafalKorepta merged commit 1868bc6 into main May 22, 2024
9 checks passed
@RafalKorepta RafalKorepta deleted the chris/p/gotohelm-helm-runner branch May 22, 2024 09:39
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.

None yet

2 participants