Update _additionalAnnotations.tpl

This commit is contained in:
Kjeld Schouten
2024-03-07 12:25:04 +01:00
committed by GitHub
parent 80435d9747
commit a3ceed37b1

View File

@@ -20,8 +20,11 @@ annotations: The annotations variable reference, to append the MetalLB annotatio
{{- if (hasKey $rootCtx.Values.global "metallb") -}}
{{- if $rootCtx.Values.global.metallb.addServiceAnnotations -}}
{{- if eq $objectData.externalTrafficPolicy "Cluster" -}}
{{- if $objectData.externalTrafficPolicy -}}
{{- if ne $objectData.externalTrafficPolicy "Local" -}}
{{- $_ := set $annotations "metallb.universe.tf/allow-shared-ip" $sharedKey -}}
{{- end -}}
{{- else -}}
{{- $_ := set $annotations "metallb.universe.tf/allow-shared-ip" $sharedKey -}}
{{- end -}}