I need to maintain a number of helm charts, and for some of them, I need 2 versions, with the only different of not adding some templates, the ones with a given annotation in this case.
I know I can wrap that template with {{- if .Values.hasAnnotation }} and then deploy passing true or false for hasAnnotation, but what I need is to create two packaged versions of the char and I want to void remove the template manually.
If there isn't a command for help me with this, my plan B is to create a GoLang tool using Sprig but I'd prefer to avoid to deal with that
Open to any idea!