From 4c9d785d6005e469abba9a73c37208ca58eea6c0 Mon Sep 17 00:00:00 2001 From: Nick Tan Date: Mon, 5 Feb 2024 23:59:39 -0800 Subject: [PATCH] feat: support service account for the CE deployment (#441) * feat: support service account for the CE deployment * Update helm-charts/mend-renovate-ce/values.yaml Co-authored-by: Nabeel Saabna <48175656+nabeelsaabna@users.noreply.github.com> --------- Co-authored-by: Nabeel Saabna <48175656+nabeelsaabna@users.noreply.github.com> --- helm-charts/mend-renovate-ce/templates/deployment.yaml | 3 +++ helm-charts/mend-renovate-ce/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/helm-charts/mend-renovate-ce/templates/deployment.yaml b/helm-charts/mend-renovate-ce/templates/deployment.yaml index 46deeadd..f256dcc1 100644 --- a/helm-charts/mend-renovate-ce/templates/deployment.yaml +++ b/helm-charts/mend-renovate-ce/templates/deployment.yaml @@ -32,6 +32,9 @@ spec: {{- with .Values.podSecurityContext }} securityContext: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.serviceAccount }} + serviceAccountName: {{ .Values.serviceAccount }} + {{- end }} terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }} containers: - name: {{ .Chart.Name }} diff --git a/helm-charts/mend-renovate-ce/values.yaml b/helm-charts/mend-renovate-ce/values.yaml index 911367e0..032d577a 100644 --- a/helm-charts/mend-renovate-ce/values.yaml +++ b/helm-charts/mend-renovate-ce/values.yaml @@ -168,6 +168,8 @@ ingress: # hosts: # - mend-renovate.local +serviceAccount: + resources: {} annotations: {}