mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-04 21:01:22 -03:00
chore(metallb): add lb ip on service as annotation
This commit is contained in:
@@ -142,3 +142,8 @@ tests:
|
||||
app.kubernetes.io/instance: test-release-name
|
||||
app.kubernetes.io/name: common-test
|
||||
pod.name: my-workload
|
||||
- documentIndex: *serviceDoc
|
||||
isSubset:
|
||||
path: metadata.annotations
|
||||
content:
|
||||
metallb.universe.tf/loadBalancerIPs: "10.100.200.45"
|
||||
|
||||
@@ -21,6 +21,9 @@ annotations: The annotations variable reference, to append the MetalLB annotatio
|
||||
{{- if (hasKey $rootCtx.Values.global "metallb") -}}
|
||||
{{- if $rootCtx.Values.global.metallb.addServiceAnnotations -}}
|
||||
{{- $_ := set $annotations "metallb.universe.tf/allow-shared-ip" $sharedKey -}}
|
||||
{{- if $objectData.loadBalancerIP -}}
|
||||
{{- $_ := set $annotations "metallb.universe.tf/loadBalancerIPs" (tpl $objectData.loadBalancerIP $rootCtx) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user