From fc2dd725610b4f2f2ed6ec6f3d3c72851eccee72 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Tue, 19 Apr 2022 11:51:34 +0200 Subject: [PATCH] fix: add annotations for service and serviceAccount --- templates/service.yaml | 6 +++++- templates/serviceAccount.yaml | 6 ++++++ values.yaml | 4 ++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/templates/service.yaml b/templates/service.yaml index 5acb20a..1c8d971 100644 --- a/templates/service.yaml +++ b/templates/service.yaml @@ -1,9 +1,13 @@ apiVersion: v1 kind: Service metadata: - name: {{ include "drone.fullname" . }} + {{- with .Values.service.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} labels: {{- include "drone.labels" . | nindent 4 }} + name: {{ include "drone.fullname" . }} spec: type: {{ .Values.service.type }} ports: diff --git a/templates/serviceAccount.yaml b/templates/serviceAccount.yaml index 00f63d8..13b3dc7 100644 --- a/templates/serviceAccount.yaml +++ b/templates/serviceAccount.yaml @@ -1,4 +1,10 @@ apiVersion: v1 kind: ServiceAccount metadata: + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} + labels: + {{- include "drone.labels" . | nindent 4 }} name: {{ include "drone.fullname" . }} \ No newline at end of file diff --git a/values.yaml b/values.yaml index 451896d..3b270df 100644 --- a/values.yaml +++ b/values.yaml @@ -522,7 +522,11 @@ config: {} # https://docs.drone.io/server/reference/drone-webhook-skip-verify/ # DRONE_WEBHOOK_SKIP_VERIFY: "" +serviceAccount: + annotations: {} + service: + annotations: {} type: ClusterIP port: 80