File tree Expand file tree Collapse file tree 2 files changed +80
-0
lines changed
Expand file tree Collapse file tree 2 files changed +80
-0
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change @@ -29,6 +29,44 @@ deploymentLabels: {}
2929# Number of replicas to be deployed
3030replicaCount : 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# #
You can’t perform that action at this time.
0 commit comments