Files
helm-charts-hardened/charts/spire/charts/spiffe-oidc-discovery-provider/templates/gateway.yaml
T
kfox1111 3cfefb72ba Gateway api support (#890)
* Gateway api support

Signed-off-by: Kevin Fox <[email protected]>

* Update readme

Signed-off-by: Kevin Fox <[email protected]>

* Fix gateway name. a gateway doesnt need to be named gateway

Signed-off-by: Kevin Fox <[email protected]>

* Fix naming issue

Signed-off-by: Kevin Fox <[email protected]>

* Incorperate feedback

Signed-off-by: Kevin Fox <[email protected]>

* Incorperate feedback

Signed-off-by: Kevin Fox <[email protected]>

---------

Signed-off-by: Kevin Fox <[email protected]>
2026-07-30 19:38:43 +00:00

19 lines
885 B
YAML

{{- if .Values.gatewayAPI.enabled -}}
{{- $tlsEnabled := eq (include "spiffe-oidc-discovery-provider.tls-enabled" .) "true" -}}
{{- $hasSecret := ne (default "" .Values.gatewayAPI.tlsSecret) "" -}}
{{- $port := $tlsEnabled | ternary .Values.service.ports.https .Values.service.ports.http -}}
{{- $routeKind := (or (not $tlsEnabled) $hasSecret) | ternary "HTTPRoute" "TLSRoute" -}}
{{- $backendTLS := and $tlsEnabled $hasSecret -}}
{{- $fullName := include "spiffe-oidc-discovery-provider.fullname" . -}}
{{- include "spire-lib.gateway-routes" (dict
"root" .
"gatewayAPI" .Values.gatewayAPI
"name" $fullName
"namespace" (include "spiffe-oidc-discovery-provider.namespace" .)
"svcName" $fullName
"port" $port
"labels" (include "spiffe-oidc-discovery-provider.labels" .)
"routeKind" $routeKind
"backendTLS" $backendTLS) }}
{{- end }}