diff --git a/charts/enterprise/metallb/Chart.yaml b/charts/enterprise/metallb/Chart.yaml index 24f80b8fdb2..8d1eddae018 100644 --- a/charts/enterprise/metallb/Chart.yaml +++ b/charts/enterprise/metallb/Chart.yaml @@ -25,7 +25,7 @@ sources: - https://github.com/metallb/metallb - https://metallb.universe.tf type: application -version: 4.0.7 +version: 4.0.8 annotations: truecharts.org/catagories: | - core diff --git a/charts/enterprise/metallb/templates/bgpadvertisement.yaml b/charts/enterprise/metallb/templates/bgpadvertisement.yaml index 10a44052fee..b4df6676a83 100644 --- a/charts/enterprise/metallb/templates/bgpadvertisement.yaml +++ b/charts/enterprise/metallb/templates/bgpadvertisement.yaml @@ -1,9 +1,7 @@ {{- range .Values.BGPAdvertisements }} -{{- if hasKey .Release "IsInstall" }} -{{- if .Release.IsInstall }} +{{- if $.Release.IsInstall }} {{- fail "Please only add MetalLB configuration after initial installation" }} {{- end }} -{{- end }} --- apiVersion: metallb.io/v1beta1 kind: BGPAdvertisement diff --git a/charts/enterprise/metallb/templates/community.yaml b/charts/enterprise/metallb/templates/community.yaml index b89ab71b8f8..f824d2731d5 100644 --- a/charts/enterprise/metallb/templates/community.yaml +++ b/charts/enterprise/metallb/templates/community.yaml @@ -1,9 +1,7 @@ {{- if .Values.Communities }} -{{- if hasKey .Release "IsInstall" }} -{{- if .Release.IsInstall }} +{{- if $.Release.IsInstall }} {{- fail "Please only add MetalLB configuration after initial installation" }} {{- end }} -{{- end }} --- apiVersion: metallb.io/v1beta1 kind: Community diff --git a/charts/enterprise/metallb/templates/ipaddresspool.yaml b/charts/enterprise/metallb/templates/ipaddresspool.yaml index ff04afb837b..fea0154af3b 100644 --- a/charts/enterprise/metallb/templates/ipaddresspool.yaml +++ b/charts/enterprise/metallb/templates/ipaddresspool.yaml @@ -1,9 +1,7 @@ {{- range .Values.ipAddressPools }} -{{- if hasKey .Release "IsInstall" }} -{{- if .Release.IsInstall }} +{{- if $.Release.IsInstall }} {{- fail "Please only add MetalLB configuration after initial installation" }} {{- end }} -{{- end }} --- apiVersion: metallb.io/v1beta1 kind: IPAddressPool diff --git a/charts/enterprise/metallb/templates/l2advertisement.yaml b/charts/enterprise/metallb/templates/l2advertisement.yaml index 54fbf42162b..7078914f9c1 100644 --- a/charts/enterprise/metallb/templates/l2advertisement.yaml +++ b/charts/enterprise/metallb/templates/l2advertisement.yaml @@ -1,9 +1,7 @@ {{- range .Values.L2Advertisements }} -{{- if hasKey .Release "IsInstall" }} -{{- if .Release.IsInstall }} +{{- if $.Release.IsInstall }} {{- fail "Please only add MetalLB configuration after initial installation" }} {{- end }} -{{- end }} --- apiVersion: metallb.io/v1beta1 kind: L2Advertisement diff --git a/charts/enterprise/metallb/templates/peers.yaml b/charts/enterprise/metallb/templates/peers.yaml index 3ceb0009d28..2546190fbfd 100644 --- a/charts/enterprise/metallb/templates/peers.yaml +++ b/charts/enterprise/metallb/templates/peers.yaml @@ -1,9 +1,7 @@ {{- range .Values.Peers }} -{{- if hasKey .Release "IsInstall" }} -{{- if .Release.IsInstall }} +{{- if $.Release.IsInstall }} {{- fail "Please only add MetalLB configuration after initial installation" }} {{- end }} -{{- end }} --- apiVersion: metallb.io/v1beta2 kind: BGPPeer