-
Notifications
You must be signed in to change notification settings - Fork 639
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
add 'extraDeploy' value to Helm Chart to allow deploying additional r… #1640
Conversation
cc @miles-w-3 for awareness and review |
It's a nice way to avoid needing to downstream/wrap the chart in order to deploy additional resources, cool. Tpl is super powerful because It basically allows the chart to deploy anything. Not too many charts do this but I don't see a problem with it. Once thing you may want to consider for the yaml case is piping to nindent 0 and chomping the new line at the start, I've found that can be helpful for ensuring whitespace works |
Could you provide an example to help clarify? I've tried various definitions using different spacing, but I haven't been able to create an incorrect or problematic YAML. |
4a29375
to
306d0ee
Compare
@justsomescripts can you put the example that you have in the issue into the doc? if @miles-w-3 agree with the approach (please indicate via an approval) than we will go ahead and merge this PR |
306d0ee
to
318496f
Compare
@TheRealHaoLiu sure, I updated the PR. |
Sorry for the delay @justsomescripts, I added an example in a comment. It will also help you clean up the indentation without having to tab inside your |
318496f
to
2d72b1c
Compare
SUMMARY
This PR allows deploying additional resources in the cluster when using the Helm Chart. Resources are defined as an array (either directly in YAML or using literal "|"). That makes it easier to deploy additional objects that are used by AWX, e.g. using
ExternalSecrets
to create secrets required by AWX, which currently requires manual deployments or using an own Helm Chart.ISSUE TYPE
ADDITIONAL INFORMATION
The resources are passed trough
tpl
, so Helm templating is possible. This feature is also common in other Charts as well, e.g. Bitnami Helm ChartsExample usage