From 96943b99183eedbd6544693a96665b1a81437646 Mon Sep 17 00:00:00 2001 From: "JOE-PC\\JoeKe" Date: Tue, 1 Oct 2024 09:06:28 -0400 Subject: [PATCH] feat(chart): Support Service Annotations Support service annotations which can be helpful when running planka in a cloud provider --- charts/planka/templates/service.yaml | 4 ++++ charts/planka/values.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/charts/planka/templates/service.yaml b/charts/planka/templates/service.yaml index c7ef2e9d..bc51f27a 100644 --- a/charts/planka/templates/service.yaml +++ b/charts/planka/templates/service.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "planka.fullname" . }} labels: {{- include "planka.labels" . | nindent 4 }} + {{- with .Values.service.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} ports: diff --git a/charts/planka/values.yaml b/charts/planka/values.yaml index b02c8be8..de9c1bd0 100644 --- a/charts/planka/values.yaml +++ b/charts/planka/values.yaml @@ -54,6 +54,7 @@ securityContext: {} # runAsUser: 1000 service: + annotations: {} type: ClusterIP port: 1337 ## @param service.containerPort Planka HTTP container port