2022-11-06 18:02:30 +00:00
|
|
|
{{- define "metallb.bgpadv" -}}
|
2022-09-11 21:47:55 +00:00
|
|
|
{{- range .Values.BGPAdvertisements }}
|
|
|
|
---
|
2022-09-11 10:50:11 +00:00
|
|
|
apiVersion: metallb.io/v1beta1
|
|
|
|
kind: BGPAdvertisement
|
|
|
|
metadata:
|
2022-11-06 21:24:57 +00:00
|
|
|
name: {{ .name }}
|
2023-05-30 20:46:18 +00:00
|
|
|
namespace: {{ $.Values.operatorNamespace }}
|
2022-09-11 10:50:11 +00:00
|
|
|
spec:
|
|
|
|
ipAddressPools:
|
|
|
|
{{- range .addressPools }}
|
|
|
|
- {{ . }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .aggregationLength }}
|
|
|
|
aggregationLength: {{ . | int }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .localpref }}
|
|
|
|
localpref: {{ . | int }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if .communities }}
|
|
|
|
communities:
|
|
|
|
{{- range .communities }}
|
|
|
|
- {{ . }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if .peers }}
|
|
|
|
peers:
|
|
|
|
{{- range .peers }}
|
|
|
|
- {{ . }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2022-11-06 18:02:30 +00:00
|
|
|
{{- end -}}
|