Skip to content

Commit d5d66b5

Browse files
committed
Fix the Gateway ingress resource
1 parent 67a298a commit d5d66b5

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

charts/gateway/templates/ingress.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
{{- else }}
1010
{{- fail "Error: Either https or http must be enabled in serverConfig!" }}
1111
{{- end }}
12-
13-
(index .Values "config" "serverConfig" "http-server.http.port") -}}
1412
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
1513
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
1614
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}

tests/gateway/test-https.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ config:
1212
http-server.https.port: 8443
1313
http-server.https.keystore.path: /etc/scratch/tls.pem
1414

15+
ingress:
16+
enabled: true
17+
1518
volumes:
1619
- name: certificates
1720
secret:

tests/gateway/test-values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ config:
2424
managedApps:
2525
- io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor
2626

27+
ingress:
28+
enabled: true
29+
2730
resources:
2831
limits:
2932
cpu: 500m

0 commit comments

Comments
 (0)