From 479d98d2f9746ad331bf9150da87881a397fba1a Mon Sep 17 00:00:00 2001 From: KirioXX Date: Thu, 19 Aug 2021 12:23:54 +0100 Subject: [PATCH] allow adding annotations to service --- README.md | 1 + templates/service.yaml | 4 ++++ values.yaml | 1 + 3 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 787e262..c2c2b7e 100644 --- a/README.md +++ b/README.md @@ -189,6 +189,7 @@ securityContext: { } service: type: ClusterIP port: 80 + annotations: {} ingress: enabled: false diff --git a/templates/service.yaml b/templates/service.yaml index 0151b7d..e57089e 100644 --- a/templates/service.yaml +++ b/templates/service.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "n8n.fullname" . }} labels: {{- include "n8n.labels" . | nindent 4 }} + {{- with .Values.service.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} ports: diff --git a/values.yaml b/values.yaml index 7488dd6..2947915 100644 --- a/values.yaml +++ b/values.yaml @@ -171,6 +171,7 @@ securityContext: service: type: ClusterIP port: 80 + annotations: {} ingress: enabled: false