Skip to content

Commit f790db6

Browse files
committed
fix namespaces and selectors
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
1 parent 14f4036 commit f790db6

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

templates/gateway/gateway.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,85 +16,85 @@ spec:
1616
listeners:
1717
- name: opencloud-https
1818
protocol: HTTPS
19-
port: 443
19+
port: {{ .Valuees.httpRoute.gateway.port | default 443 }}
2020
hostname: {{ .Values.global.domain.opencloud | quote }}
2121
tls:
2222
mode: Terminate
2323
certificateRefs:
2424
- name: opencloud-wildcard-tls
25-
namespace: kube-system
25+
namespace: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
2626
allowedRoutes:
2727
namespaces:
2828
from: Selector
2929
selector:
3030
matchLabels:
31-
{{- include "opencloud.selectorLabels" . | nindent 14 }}
31+
kubernetes.io/metadata.name: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
3232
{{- if .Values.keycloak.enabled }}
3333
- name: keycloak-https
3434
protocol: HTTPS
35-
port: 443
35+
port: {{ .Valuees.httpRoute.gateway.port | default 443 }}
3636
hostname: {{ .Values.global.domain.keycloak | quote }}
3737
tls:
3838
mode: Terminate
3939
certificateRefs:
4040
- name: opencloud-wildcard-tls
41-
namespace: kube-system
41+
namespace: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
4242
allowedRoutes:
4343
namespaces:
4444
from: Selector
4545
selector:
4646
matchLabels:
47-
{{- include "opencloud.selectorLabels" . | nindent 14 }}
47+
kubernetes.io/metadata.name: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
4848
{{- end }}
4949
{{- if and .Values.opencloud.storage.s3.internal.enabled .Values.opencloud.storage.s3.internal.httpRoute.enabled }}
5050
- name: minio-https
5151
protocol: HTTPS
52-
port: 443
52+
port: {{ .Valuees.httpRoute.gateway.port | default 443 }}
5353
hostname: {{ .Values.global.domain.minio | quote }}
5454
tls:
5555
mode: Terminate
5656
certificateRefs:
5757
- name: opencloud-wildcard-tls
58-
namespace: kube-system
58+
namespace: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
5959
allowedRoutes:
6060
namespaces:
6161
from: Selector
6262
selector:
6363
matchLabels:
64-
{{- include "opencloud.selectorLabels" . | nindent 14 }}
64+
kubernetes.io/metadata.name: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
6565
{{- end }}
6666
{{- if .Values.onlyoffice.enabled }}
6767
- name: onlyoffice-https
6868
protocol: HTTPS
69-
port: 443
69+
port: {{ .Valuees.httpRoute.gateway.port | default 443 }}
7070
hostname: {{ .Values.global.domain.onlyoffice | quote }}
7171
tls:
7272
mode: Terminate
7373
certificateRefs:
7474
- name: opencloud-wildcard-tls
75-
namespace: kube-system
75+
namespace: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
7676
allowedRoutes:
7777
namespaces:
7878
from: Selector
7979
selector:
8080
matchLabels:
81-
{{- include "opencloud.selectorLabels" . | nindent 14 }}
81+
kubernetes.io/metadata.name: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
8282
{{- end }}
8383
{{- if and .Values.onlyoffice.collaboration.enabled .Values.onlyoffice.enabled }}
8484
- name: collaboration-https
8585
protocol: HTTPS
86-
port: 443
86+
port: {{ .Valuees.httpRoute.gateway.port | default 443 }}
8787
hostname: {{ .Values.global.domain.wopi | quote }}
8888
tls:
8989
mode: Terminate
9090
certificateRefs:
9191
- name: opencloud-wildcard-tls
92-
namespace: kube-system
92+
namespace: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
9393
allowedRoutes:
9494
namespaces:
9595
from: Selector
9696
selector:
9797
matchLabels:
98-
{{- include "opencloud.selectorLabels" . | nindent 14 }}
98+
kubernetes.io/metadata.name: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
9999
{{- end }}
100100
{{- end }}

templates/gateway/reference-grant.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: gateway.networking.k8s.io/v1beta1
33
kind: ReferenceGrant
44
metadata:
55
name: {{ include "opencloud.fullname" . }}-reference-grant
6-
namespace: {{ .Values.httpRoute.gateway.namespace | default "kube-system" }}
6+
namespace: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
77
labels:
88
{{- include "opencloud.labels" . | nindent 4 }}
99
spec:
@@ -27,7 +27,7 @@ spec:
2727
from:
2828
- group: gateway.networking.k8s.io
2929
kind: Gateway
30-
namespace: {{ .Values.httpRoute.gateway.namespace | default "kube-system" }}
30+
namespace: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
3131
to:
3232
- group: ""
3333
kind: Secret

values.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -509,11 +509,13 @@ httpRoute:
509509
gateway:
510510
# Create the gateway
511511
create: true
512+
# HTTPS Port to listen to (k3s traefik defaults to 8443)
513+
port: 443
512514
# Gateway name
513515
name: opencloud-gateway
514-
# Gateway class (defaults to "gateway")
515-
className: traefik
516+
# Gateway class (defaults to "cilium")
517+
className: cilium
516518
# Gateway namespace (defaults to Release.Namespace)
517-
namespace: "kube-system"
519+
namespace: ""
518520
# Gateway annotations
519521
annotations:

0 commit comments

Comments
 (0)