Skip to content

Commit

Permalink
paperless-ngx update
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronSeibert committed Mar 5, 2024
1 parent ebfb9fb commit 7bce056
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/paperless-ngx/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v2
appVersion: 1.9.2
appVersion: v2.6.1
description: Paperless-NGX Application - webserver component
name: paperless-ngx
type: application
version: 0.1.24
version: 0.1.25
dependencies:
- name: base
version: 1.0.4
Expand Down
61 changes: 61 additions & 0 deletions charts/paperless-ngx/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "paperless-ngx.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
{{- end }}
{{- end }}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "paperless-ngx.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ .path }}
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
pathType: {{ .pathType }}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- else }}
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
21 changes: 21 additions & 0 deletions charts/paperless-ngx/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,27 @@ ingressRoute:
# -- Additional labels for the ingress route object.
labels: {}

ingress:
# -- Create an Ingress object for exposing this chart
enabled: true
className: ""
annotations:
cert-manager.io/cluster-issuer: letsencrypt-stage
kubernetes.io/ingress.class: traefik
gethomepage.dev/enabled: "true"
gethomepage.dev/description: Electronic Filing Cabinet
gethomepage.dev/group: Documentation
gethomepage.dev/name: Paperless NGX
hosts:
- host: ''
paths:
- path: /
pathType: Prefix
tls:
- secretName: paperless-ngx-tls
hosts:
- paperless-ngx.example.com

certificate:
# -- Create an Certificate object for the exposed chart.
create: false
Expand Down

0 comments on commit 7bce056

Please sign in to comment.