Skip to content

Commit c5650e1

Browse files
authored
feat(nextcloud): add GatewayAPI httpRoute ingress successor (#817)
1 parent 7edffec commit c5650e1

File tree

3 files changed

+81
-1
lines changed

3 files changed

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

charts/nextcloud/values.yaml

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

32+
httpRoute:
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+
# -- Route hostnames
45+
hostnames: []
46+
# -- Reference to parent gateways
47+
parentRefs: []
48+
# -- List of rules and filters applied.
49+
rules:
50+
- matches:
51+
- path:
52+
type: PathPrefix
53+
value: "/"
54+
# filters:
55+
# - type: RequestHeaderModifier
56+
# requestHeaderModifier:
57+
# set:
58+
# - name: My-Overwrite-Header
59+
# value: this-is-the-only-value
60+
# remove:
61+
# - User-Agent
62+
# - matches:
63+
# - path:
64+
# type: PathPrefix
65+
# value: /echo
66+
# headers:
67+
# - name: version
68+
# value: v2
69+
3270
## Allowing use of ingress controllers
3371
## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
3472
##

0 commit comments

Comments
 (0)