You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes: aws-controllers-k8s/community#2014
Prior to this patch, we observed some weird conflicts when installing multiple
ACK helm charts (as sub charts), e.g `ack-chart`, where the last controller
installation would override values/templates from the previous ones.
This issue stemmed from the asumption that helm "template" names are
unique across installations, which was a miss from the ACK team.
This patch addresses the conflict by prefixing all the helm template
variables with a `ack-$SERVICE-controller` string.
This solution comes with the cost of adding complexity to the already
complex helm "templates templates generator"... However the least we
could do is to leverage Go template "Funcs" to reduce the complexity of
writing those templates. For example instead of writing something like
`{{ "{{ \"define \"ack- }}" }}{{ .ServicePackageName }}{{
"-controller.rbac-rules\"" }}`,
we could "simply" write a `{{ DefineTemplate "rbac-rules" }}`
Signed-off-by: Amine Hilaly <[email protected]>
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
0 commit comments