Open mircea-pavel-anton opened 1 month ago
Currently not possible
Leaving it here for others running into the same limitation.
I was able to work around this by adding a validation in my templates:
{{- if .Values.valueB }}
{{- if .Values.valueC }}
{{- fail "Value B and C are mutually exclusive!" }}
{{- end }}
{{- end }}
Granted, this is not an ideal solution as it will fail at apply-time, but it ultimately achieves the same goal... Mostly
Say I have a helm chart with this
values.yaml
:And what I want is to have
valueA
always required, but then only one ofvalueB
orvalueC
. They are mutually exclusive.If I generate the schema, I get this:
Which is expected, and what I want essentially is to also include this block:
To get this:
It is not clear to me how to do this with the current comment-annotations