mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-04 14:21:24 -03:00
Update _additionalAnnotations.tpl
This commit is contained in:
@@ -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 -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user