shorten line

This commit is contained in:
Stavros kois
2023-02-04 15:07:26 +02:00
parent 2ab542a776
commit 80b5eff38e

View File

@@ -8,8 +8,10 @@ rootCtx: The root context of the service
{{- $rootCtx := .rootCtx -}}
{{- $annotations := .annotations -}}
{{- $sharedKey := include "ix.v1.common.lib.chart.names.fullname" $rootCtx -}}
{{- if $rootCtx.Values.global.addMetalLBAnnotations -}}
{{- $_ := set $annotations "metallb.universe.tf/allow-shared-ip" (include "ix.v1.common.lib.chart.names.fullname" $rootCtx) -}}
{{- $_ := set $annotations "metallb.universe.tf/allow-shared-ip" $sharedKey -}}
{{- end -}}
{{- end -}}