For example, given
spec.template.spec.containers[0].ports[2]:
- strategy: append-with
key: sharedValues.extraPorts
- strategy: control-if
conditions:
- key: "!sharedValues.webhook.disabled"
- key: sharedValues.tls.enabled
conditionOperator: and
I would want
{{- if and (not .Values.webhook.disabled) .Values.tls.enabled }}
- containerPort: 9443
name: webhook-server
protocol: TCP
{{- with .Values.extraPorts }}
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}
but it results to
- containerPort: 9443
name: webhook-server
protocol: TCP
{{- with .Values.extraPorts }}
{{- toYaml . | nindent 2 }}
{{- end }}
For example, given
I would want
but it results to