fix(metallb): fix error/warning on upgrade

This commit is contained in:
Kjeld Schouten-Lebbing
2022-09-13 19:16:11 +02:00
parent 11465e6291
commit 5d3e0697e1
6 changed files with 16 additions and 6 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ sources:
- https://github.com/metallb/metallb
- https://metallb.universe.tf
type: application
version: 4.0.6
version: 4.0.7
annotations:
truecharts.org/catagories: |
- core
@@ -1,7 +1,9 @@
{{- range .Values.BGPAdvertisements }}
{{- if .Release.IsInstall }}
{{- if hasKey .Release "IsInstall" }}
{{- if .Release.IsInstall }}
{{- fail "Please only add MetalLB configuration after initial installation" }}
{{- end }}
{{- end }}
---
apiVersion: metallb.io/v1beta1
kind: BGPAdvertisement
@@ -1,7 +1,9 @@
{{- if .Values.Communities }}
{{- if .Release.IsInstall }}
{{- if hasKey .Release "IsInstall" }}
{{- if .Release.IsInstall }}
{{- fail "Please only add MetalLB configuration after initial installation" }}
{{- end }}
{{- end }}
---
apiVersion: metallb.io/v1beta1
kind: Community
@@ -1,7 +1,9 @@
{{- range .Values.ipAddressPools }}
{{- if .Release.IsInstall }}
{{- if hasKey .Release "IsInstall" }}
{{- if .Release.IsInstall }}
{{- fail "Please only add MetalLB configuration after initial installation" }}
{{- end }}
{{- end }}
---
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
@@ -1,7 +1,9 @@
{{- range .Values.L2Advertisements }}
{{- if .Release.IsInstall }}
{{- if hasKey .Release "IsInstall" }}
{{- if .Release.IsInstall }}
{{- fail "Please only add MetalLB configuration after initial installation" }}
{{- end }}
{{- end }}
---
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
@@ -1,7 +1,9 @@
{{- range .Values.Peers }}
{{- if .Release.IsInstall }}
{{- if hasKey .Release "IsInstall" }}
{{- if .Release.IsInstall }}
{{- fail "Please only add MetalLB configuration after initial installation" }}
{{- end }}
{{- end }}
---
apiVersion: metallb.io/v1beta2
kind: BGPPeer