Don't touch the metallb configmap if no config is defined.
The warning we present in NOTES.txt says "go install your own
config if you don't want to specify it via Helm". If a user does
that, we don't want a helm upgrade to stomp on that config.
+{{- if (or .Values.config .Values.arpCIDR) }}
apiVersion: v1
kind: ConfigMap
metadata:
@@ -7,12 +8,11 @@ data:
config: |
{{- if .Values.config }}
{{ toYaml .Values.override_config | indent 4 }}
-{{- else if .Values.arpCIDR }}
+{{- else }}
address-pools:
- name: default
protocol: arp
cidr:
- {{ .Values.arpCIDR }}
-{{- else }}
- # No configuration defined, MetalLB will not do anything useful.
+{{- end }}
{{- end }}
