fix: add annotations for service and serviceAccount
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Markus Pesch 2022-04-19 11:51:34 +02:00
parent c336536512
commit fc2dd72561
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
3 changed files with 15 additions and 1 deletions

View File

@ -1,9 +1,13 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: {{ include "drone.fullname" . }} {{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels: labels:
{{- include "drone.labels" . | nindent 4 }} {{- include "drone.labels" . | nindent 4 }}
name: {{ include "drone.fullname" . }}
spec: spec:
type: {{ .Values.service.type }} type: {{ .Values.service.type }}
ports: ports:

View File

@ -1,4 +1,10 @@
apiVersion: v1 apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "drone.labels" . | nindent 4 }}
name: {{ include "drone.fullname" . }} name: {{ include "drone.fullname" . }}

View File

@ -522,7 +522,11 @@ config: {}
# https://docs.drone.io/server/reference/drone-webhook-skip-verify/ # https://docs.drone.io/server/reference/drone-webhook-skip-verify/
# DRONE_WEBHOOK_SKIP_VERIFY: "" # DRONE_WEBHOOK_SKIP_VERIFY: ""
serviceAccount:
annotations: {}
service: service:
annotations: {}
type: ClusterIP type: ClusterIP
port: 80 port: 80