-
Notifications
You must be signed in to change notification settings - Fork 106
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
**Explore:** Package authors should be able to customize how InstalledPackage values get included in templating steps #122
Comments
Related: #129 |
Adding "Explore" to this issue to work on a proposal. Moving this up in the backlog to give us time to get the proposal reviewed. |
Updating this issue with some recent conversation around supporting this: We are looking to collect more use cases around this feature before moving forward with any proposal. All ideas around how to make use of this feature are welcome to help better inform the final proposal. |
We decided to move this issue to Post-MVP. |
Bumping this discussion and hoping to rekindle it, as this use case is now very well established when you're using Helm in conjunction with ytt overlays. You can "hack" this in today leveraging the fact that when you need the value in multiple template steps if you know which one is first you can force things into the second one:
This is amazingly brittle, since you're forced to use paths and not data-values, and as a consumer of a package you really shouldn't have to know the implementation detail of "helm first, then ytt" -- to you it should just be "a package I pass things into" |
Another bump. We running into this limitation when building the Crossplane package for TAP. That package depends on a helm chart that must be templated as a first step. At the same time, the package requires its own set of values defined in a dedicated |
We have a use case for using helm as the 1st templating step and ytt as the 2nd templating step, both use the same secrets. So it does not require the more flexible solution proposed in this ticket. |
In the current alpha, values from the InstalledPackage are appended to the values of the first templating step, which is quite limiting.
To improve this experience for authors, I propose adding a
valuesConfig
key to the Package definition. Under this key, authors are able to specify which templating step the values will be included in, and can optionally choose to include the namespace as a value as well. It could look something like this: https://gist.github.com/ewrenn8/5d029c1c0c44b12e957119a10733d45fSome outstanding thoughts:
Making this issue as a discussion ground for potential solutions to this problem, so if there are completely unrelated solutions please post them!
The text was updated successfully, but these errors were encountered: