diff --git a/charts/nextcloud/Chart.yaml b/charts/nextcloud/Chart.yaml index 3633ea10..db560bbd 100644 --- a/charts/nextcloud/Chart.yaml +++ b/charts/nextcloud/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: nextcloud -version: 8.6.0 +version: 8.7.0 # renovate: image=docker.io/library/nextcloud appVersion: 32.0.2 description: A file sharing server that puts the control and security of your own data back into your hands. diff --git a/charts/nextcloud/templates/route.yaml b/charts/nextcloud/templates/route.yaml new file mode 100644 index 00000000..8f9c4319 --- /dev/null +++ b/charts/nextcloud/templates/route.yaml @@ -0,0 +1,42 @@ +{{- if .Values.httpRoute.enabled }} +{{- $fullName := include "nextcloud.fullname" . -}} +{{- $svcPort := .Values.service.port -}} +apiVersion: {{ .Values.httpRoute.apiVersion }} +kind: {{ .Values.httpRoute.kind }} +metadata: + name: {{ $fullName }} + namespace: {{ .Release.Namespace }} + labels: + {{- include "nextcloud.labels" ( dict "component" "app" "rootContext" $ ) | nindent 4 }} + {{- with .Values.httpRoute.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} + {{- with .Values.httpRoute.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + {{- with .Values.httpRoute.parentRefs }} + parentRefs: + {{- toYaml . | nindent 4 }} + {{- end }} + {{- with .Values.httpRoute.hostnames }} + hostnames: + {{- tpl (toYaml .) $ | nindent 4 }} + {{- end }} + rules: + {{- range .Values.httpRoute.rules }} + {{- with .matches }} + - matches: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .filters }} + filters: + {{- toYaml . | nindent 8 }} + {{- end }} + - backendRefs: + - name: {{ $fullName }} + port: {{ $svcPort }} + weight: 1 + {{- end }} +{{- end }} diff --git a/charts/nextcloud/values.yaml b/charts/nextcloud/values.yaml index 9c44fd28..f604b964 100644 --- a/charts/nextcloud/values.yaml +++ b/charts/nextcloud/values.yaml @@ -29,6 +29,44 @@ deploymentLabels: {} # Number of replicas to be deployed replicaCount: 1 +httpRoute: + # -- Enable an HTTPRoute resource for nextcloud . + enabled: false + # -- Set the route apiVersion + apiVersion: gateway.networking.k8s.io/v1 + # -- Set the route kind + kind: HTTPRoute + + # -- Route annotations + annotations: {} + # -- Route labels + labels: {} + # -- Route hostnames + hostnames: [] + # -- Reference to parent gateways + parentRefs: [] + # -- List of rules and filters applied. + rules: + - matches: + - path: + type: PathPrefix + value: "/" + # filters: + # - type: RequestHeaderModifier + # requestHeaderModifier: + # set: + # - name: My-Overwrite-Header + # value: this-is-the-only-value + # remove: + # - User-Agent + # - matches: + # - path: + # type: PathPrefix + # value: /echo + # headers: + # - name: version + # value: v2 + ## Allowing use of ingress controllers ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/ ##