From a5fc085ab9411c32eee0636e434e26bbb8c484d4 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Sun, 6 Jul 2025 09:11:22 +0200 Subject: [PATCH] Refactor service.yaml for improved readability Updated the service.yaml template by removing unnecessary comments and whitespace for better readability. The updates include cleanup of the Kubernetes service definition while maintaining the original functionality. These changes simplify the code structure without altering the service's behavior. No breaking changes were introduced, ensuring compatibility with existing configurations. --- charts/paperless-ai/templates/service.yaml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/charts/paperless-ai/templates/service.yaml b/charts/paperless-ai/templates/service.yaml index 8b26a03..a75f517 100644 --- a/charts/paperless-ai/templates/service.yaml +++ b/charts/paperless-ai/templates/service.yaml @@ -1,15 +1,13 @@ -# service.yaml -# Definiert einen Kubernetes Service, der den Zugriff auf die Pods des Deployments ermöglicht. apiVersion: v1 kind: Service metadata: - name: { { include "paperless-ai.fullname" . } } # Der Name des Services. - labels: { { - include "paperless-ai.labels" . | nindent 4 } } # Allgemeine Labels für den Service. + name: { { include "paperless-ai.fullname" . } } + labels: { { - include "paperless-ai.labels" . | nindent 4 } } spec: - type: { { .Values.service.type } } # Der Typ des Services (z.B. ClusterIP, NodePort, LoadBalancer). + type: { { .Values.service.type } } ports: - - port: { { .Values.service.port } } # Der Port, auf dem der Service Anfragen empfängt. - targetPort: { { .Values.service.targetPort } } # Der Port des Pods, an den der Service weiterleitet. - protocol: TCP # Das Protokoll des Ports. - name: http # Name des Service-Ports. - selector: { { - include "paperless-ai.selectorLabels" . | nindent 4 } } # Selector, um die Pods zu finden, die dieser Service bedient. + - port: { { .Values.service.port } } + targetPort: { { .Values.service.targetPort } } + protocol: + name: http + selector: { { - include "paperless-ai.selectorLabels" . | nindent 4 } }