Skip to content

Commit ba6bdce

Browse files
committed
feat: add httpRoute ingress successor
Signed-off-by: DrummyFloyd <[email protected]>
1 parent c478128 commit ba6bdce

File tree

3 files changed

+73
-1
lines changed

3 files changed

+73
-1
lines changed

charts/nextcloud/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: nextcloud
3-
version: 8.6.0
3+
version: 8.7.0
44
# renovate: image=docker.io/library/nextcloud
55
appVersion: 32.0.2
66
description: A file sharing server that puts the control and security of your own data back into your hands.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{{- if .Values.route.enabled }}
2+
apiVersion: {{ .Values.route.apiVersion | default "gateway.networking.k8s.io/v1" }}
3+
kind: {{ .Values.route.kind | default "HTTPRoute" }}
4+
metadata:
5+
name: {{ template "nextcloud.fullname" . }}
6+
namespace: {{ .Release.Namespace }}
7+
labels:
8+
{{- include "nextcloud.labels" ( dict "component" "app" "rootContext" $ ) | nindent 4 }}
9+
{{- with .Values.route.labels }}
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
12+
{{- with .Values.route.annotations }}
13+
annotations:
14+
{{- toYaml . | nindent 4 }}
15+
{{- end }}
16+
spec:
17+
{{- with .Values.route.parentRefs }}
18+
parentRefs:
19+
{{- toYaml . | nindent 4 }}
20+
{{- end }}
21+
{{- with .Values.route.hostnames }}
22+
hostnames:
23+
{{- tpl (toYaml .) $ | nindent 4 }}
24+
{{- end }}
25+
rules:
26+
{{- if .Values.route.additionalRules }}
27+
{{- tpl (toYaml .Values.route.additionalRules) $ | nindent 4 }}
28+
{{- end }}
29+
- backendRefs:
30+
- name: {{ template "nextcloud.fullname" . }}
31+
port: {{ .Values.service.port }}
32+
{{- with .Values.route.filters }}
33+
filters:
34+
{{- toYaml . | nindent 8 }}
35+
{{- end }}
36+
{{- with .Values.route.matches }}
37+
matches:
38+
{{- tpl (toYaml .) $ | nindent 8 }}
39+
{{- end }}
40+
{{- end }}

charts/nextcloud/values.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,38 @@ deploymentLabels: {}
2929
# Number of replicas to be deployed
3030
replicaCount: 1
3131

32+
route:
33+
# -- enable an HTTPRoute resource for nextcloud .
34+
enabled: false
35+
# -- Set the route apiVersion
36+
apiVersion: gateway.networking.k8s.io/v1
37+
# -- Set the route kind
38+
kind: HTTPRoute
39+
40+
# -- Route annotations
41+
annotations: {}
42+
# -- Route labels
43+
labels: {}
44+
45+
# -- Route hostnames
46+
hostnames: []
47+
# -- Reference to parent gateways
48+
parentRefs: []
49+
# -- Route matches
50+
matches:
51+
- path:
52+
type: PathPrefix
53+
value: "/"
54+
# -- Route filters
55+
filters: []
56+
57+
# -- Additional custom rules that can be added to the route
58+
additionalRules: []
59+
# - type: RequestRedirect
60+
# requestRedirect:
61+
# scheme: https
62+
# statusCode: 301
63+
3264
## Allowing use of ingress controllers
3365
## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
3466
##

0 commit comments

Comments
 (0)