{{- if .Values.grpc.gatewayAPI.enabled -}} {{- $routeKind := include "spire-lib.gateway-route-kind" (dict "gatewayAPI" .Values.grpc.gatewayAPI) -}} {{- include "spire-lib.gateway-routes" (dict "root" . "gatewayAPI" .Values.grpc.gatewayAPI "name" (printf "%s-grpc" (include "spire-identity-exchange.fullname" .)) "namespace" (include "spire-identity-exchange.namespace" .) "svcName" (printf "%s-grpc" (include "spire-identity-exchange.fullname" .)) "port" .Values.grpc.service.port "labels" (include "spire-identity-exchange.labels" .) "routeKind" $routeKind "backendTLS" (eq $routeKind "HTTPRoute")) }} {{- end }}