diff --git a/k8s/manifests/charts/ck-loadbalancer/templates/metallb/l2-policy.yaml b/k8s/manifests/charts/ck-loadbalancer/templates/metallb/l2-policy.yaml index e8fb0991bc..b97bfd4adb 100644 --- a/k8s/manifests/charts/ck-loadbalancer/templates/metallb/l2-policy.yaml +++ b/k8s/manifests/charts/ck-loadbalancer/templates/metallb/l2-policy.yaml @@ -9,7 +9,7 @@ metadata: {{- include "ck-loadbalancer.labels" . | nindent 4 }} spec: ipAddressPools: - - {{ include "ck-loadbalancer.fullname" . }} + - {{ include "ck-loadbalancer.fullname" . }} {{- with .Values.l2.interfaces }} interfaces: {{- toYaml . | nindent 4 }} diff --git a/k8s/manifests/charts/ck-loadbalancer/templates/metallb/lb-ip-pool.yaml b/k8s/manifests/charts/ck-loadbalancer/templates/metallb/lb-ip-pool.yaml index ba60b3345e..c5a18df7a1 100644 --- a/k8s/manifests/charts/ck-loadbalancer/templates/metallb/lb-ip-pool.yaml +++ b/k8s/manifests/charts/ck-loadbalancer/templates/metallb/lb-ip-pool.yaml @@ -1,6 +1,5 @@ {{ if (eq .Values.driver "metallb") }} {{ if .Values.ipPool.cidrs }} - apiVersion: "metallb.io/v1beta1" kind: IPAddressPool metadata: @@ -14,7 +13,7 @@ spec: - {{ .cidr }} {{- else if and .start .stop }} - {{ printf "%s-%s" .start .stop }} - {{- end }} - {{- end }} + {{ end }} + {{ end }} {{ end }} {{ end }}