All checks were successful
Build Helm Chart / helm-package (push) Successful in 4s
Bumped the version of the Paperless AI Helm chart from 0.1.0 to 0.2.0 to reflect the latest updates. Various templates have been modified for improved consistency and adherence to best practices. Notable changes include: - Removal of unnecessary comments in `pvc.yaml` for a cleaner look. - Simplification of indentation and formatting in `ingress.yaml`, `pvc.yaml`, and `service.yaml` to ensure correct rendering of Kubernetes resources. - Fixed comments in templates to clarify their purpose while removing inline comments for a streamlined approach. These changes enhance maintainability and clarity within the Helm chart templates. No breaking changes are introduced in this update.
39 lines
1.6 KiB
YAML
39 lines
1.6 KiB
YAML
# ingress.yaml
|
|
# Definiert einen Kubernetes Ingress, um externen Zugriff auf den Service zu ermöglichen.
|
|
# Standardmäßig ist dieser Ingress deaktiviert und muss in 'values.yaml' aktiviert werden.
|
|
{{- if .Values.ingress.enabled -}} # Dieses Template wird nur gerendert, wenn 'ingress.enabled' true ist.
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "paperless-ai.fullname" . }} # Der Name des Ingress
|
|
labels:
|
|
{{- include "paperless-ai.labels" . | nindent 4 }} # Allgemeine Labels für den Ingress.
|
|
{{- with .Values.ingress.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }} # Zusätzliche Anmerkungen für den Ingress (z.B. für Cert-Manager oder Nginx-Controller).
|
|
{{- end }}
|
|
spec:
|
|
{{- if .Values.ingress.className }}
|
|
ingressClassName: {{ .Values.ingress.className }} # Der Name der Ingress-Klasse.
|
|
{{- end }}
|
|
{{- if .Values.ingress.tls }}
|
|
tls:
|
|
{{- toYaml .Values.ingress.tls | nindent 4 }} # TLS-Konfiguration für HTTPS.
|
|
{{- end }}
|
|
rules:
|
|
{{- range .Values.ingress.hosts }}
|
|
- host: {{ .host | quote }} # Der Hostname für den Ingress.
|
|
http:
|
|
paths:
|
|
{{- range .paths }}
|
|
- path: {{ .path }} # Der Pfad, der weitergeleitet werden soll.
|
|
pathType: {{ .pathType }} # Der Typ des Pfades (Prefix, Exact, ImplementationSpecific).
|
|
backend:
|
|
service:
|
|
name: {{ include "paperless-ai.fullname" $ }} # Name des Services, an den weitergeleitet wird.
|
|
port:
|
|
number: {{ $.Values.service.port }} # Port des Services.
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|