The Unified and Autonomous Development Platform
fix: add optional annotations & upate helper func
Khaliq0de9ca1322cf
diff --git a/server-product/helm/templates/serviceaccount.yaml b/server-product/helm/templates/serviceaccount.yamlindex 7be79ae4ee..b278e245d4 100644--- a/server-product/helm/templates/serviceaccount.yaml+++ b/server-product/helm/templates/serviceaccount.yaml@@ -1,6 +1,11 @@+{{- if .Values.serviceAccount.create -}}apiVersion: v1kind: ServiceAccountmetadata:- name: {{ include "onedev.fullname" . }}- labels:- {{- include "onedev.labels" . | nindent 4 }}+ name: {{ include "ods.serviceAccountName" . }}+ namespace: {{ .Release.Namespace }}+ {{- if .Values.serviceAccount.annotations }}+ annotations: {{ tpl (toYaml .Values.serviceAccount.annotations) . | nindent 4 }}+ {{- end }}+ labels: {{ include "ods.labels" . | nindent 4 }}+{{- end -}}