diff --git a/helm/rustfs/templates/gateway-api/traefik-service.yaml b/helm/rustfs/templates/gateway-api/traefik-service.yaml index 2934c9ab1..9bd9c50b2 100644 --- a/helm/rustfs/templates/gateway-api/traefik-service.yaml +++ b/helm/rustfs/templates/gateway-api/traefik-service.yaml @@ -1,4 +1,4 @@ -{{- if eq .Values.gatewayApi.gatewayClass "traefik" }} +{{- if and .Values.gatewayApi.enabled (eq .Values.gatewayApi.gatewayClass "traefik") }} apiVersion: traefik.io/v1alpha1 kind: TraefikService metadata: