Skip to content

Commit f544a94

Browse files
Fix s3proxy route (#1205)
Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
1 parent e2e71e6 commit f544a94

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

charts/ace/templates/ingress/certificate.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ spec:
2020
- {{ include "ace.fullname" . }}-nats
2121
- {{ include "ace.fullname" . }}-nats.{{ .Release.Namespace }}.svc
2222
- {{ include "ace.fullname" . }}-nats.{{ .Release.Namespace }}.svc.cluster.local
23+
- {{ include "ace.fullname" . }}-s3proxy
24+
- {{ include "ace.fullname" . }}-s3proxy.{{ .Release.Namespace }}.svc
25+
- {{ include "ace.fullname" . }}-s3proxy.{{ .Release.Namespace }}.svc.cluster.local
2326
{{- if eq .Values.global.platform.hostType "domain" }}
2427
- "{{ .Values.global.platform.host }}"
2528
{{- if and .Values.nats.enabled .Values.nats.nats.externalAccess }}

charts/s3proxy/templates/httproute.yaml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{{- if (index .Values "gateway" "enabled") }}
22

3+
{{- if (index .Values "gateway" "hosts") }}
4+
35
apiVersion: gateway.networking.k8s.io/v1
46
kind: HTTPRoute
57
metadata:
@@ -35,13 +37,31 @@ spec:
3537
- group: ""
3638
kind: Service
3739
name: {{ include "s3proxy.fullname" . }}
38-
namespace: {{ .Release.Namespace }}
39-
port: {{ .Values.service.port }}
40+
namespace: {{ $.Release.Namespace }}
41+
port: {{ $.Values.service.port }}
4042
weight: 1
4143
{{- end }}
4244
{{- end }}
4345

4446
---
47+
apiVersion: gateway.networking.k8s.io/v1
48+
kind: BackendTLSPolicy
49+
metadata:
50+
name: {{ include "ace.fullname" . }}-s3proxy
51+
namespace: {{ .Release.Namespace }}
52+
spec:
53+
targetRefs:
54+
- group: ""
55+
kind: Service
56+
name: {{ include "ace.fullname" . }}-s3proxy
57+
validation:
58+
caCertificateRefs:
59+
- group: ""
60+
kind: Secret
61+
name: {{ include "ace.fullname" . }}-cert
62+
hostname: {{ include "ace.fullname" . }}-s3proxy
63+
{{- end }}
64+
4565
---
4666
apiVersion: gateway.networking.k8s.io/v1alpha2
4767
kind: TCPRoute

0 commit comments

Comments
 (0)