diff --git a/library/common/templates/class/_ingress.tpl b/library/common/templates/class/_ingress.tpl index c6a8fb07..ce6bc7c6 100644 --- a/library/common/templates/class/_ingress.tpl +++ b/library/common/templates/class/_ingress.tpl @@ -19,15 +19,15 @@ within the common library. {{/* Get the name of the primary service, if any */}} - {{- $primarySeriviceName := (include "tc.v1.common.lib.util.service.primary" (dict "services" .Values.service "root" .)) -}} + {{- $primaryServiceName := (include "tc.v1.common.lib.util.service.primary" (dict "services" .Values.service "root" .)) -}} {{/* Get service values of the primary service, if any */}} - {{- $primaryService := get .Values.service $primarySeriviceName -}} + {{- $primaryService := get .Values.service $primaryServiceName -}} {{- $defaultServiceName := $fullName -}} {{- if and (hasKey $primaryService "nameOverride") $primaryService.nameOverride -}} {{- $defaultServiceName = printf "%v-%v" $defaultServiceName $primaryService.nameOverride -}} {{- end -}} - {{- $defaultServicePort := get $primaryService.ports (include "tc.v1.common.lib.util.service.ports.primary" (dict "svcValues" $primaryService "svcName" $primarySeriviceName )) -}} + {{- $defaultServicePort := get $primaryService.ports (include "tc.v1.common.lib.util.service.ports.primary" (dict "svcValues" $primaryService "svcName" $primaryServiceName )) -}} {{- $mddwrNamespace := "tc-system" -}} {{- if $values.ingressClassName -}} diff --git a/library/common/templates/class/_route.tpl b/library/common/templates/class/_route.tpl index 6bae0ff6..7770c90e 100644 --- a/library/common/templates/class/_route.tpl +++ b/library/common/templates/class/_route.tpl @@ -20,15 +20,15 @@ within the common library. {{- $routeKind := $values.kind | default "HTTPRoute" -}} {{/* Get the name of the primary service, if any */}} -{{- $primarySeriviceName := (include "tc.v1.common.lib.util.service.primary" (dict "services" .Values.service "root" .)) -}} +{{- $primaryServiceName := (include "tc.v1.common.lib.util.service.primary" (dict "services" .Values.service "root" .)) -}} {{/* Get service values of the primary service, if any */}} -{{- $primaryService := get .Values.service $primarySeriviceName -}} +{{- $primaryService := get .Values.service $primaryServiceName -}} {{- $defaultServiceName := $fullName -}} {{- if and (hasKey $primaryService "nameOverride") $primaryService.nameOverride -}} {{- $defaultServiceName = printf "%v-%v" $defaultServiceName $primaryService.nameOverride -}} {{- end -}} -{{- $defaultServicePort := get $primaryService.ports (include "tc.v1.common.lib.util.service.ports.primary" (dict "svcValues" $primaryService "svcName" $primarySeriviceName )) -}} +{{- $defaultServicePort := get $primaryService.ports (include "tc.v1.common.lib.util.service.ports.primary" (dict "svcValues" $primaryService "svcName" $primaryServiceName )) -}} --- apiVersion: gateway.networking.k8s.io/v1alpha2