From fbbecf0846344650b889629005731388f3a35082 Mon Sep 17 00:00:00 2001 From: Eric Paulsen Date: Wed, 19 Oct 2022 08:49:48 -0500 Subject: [PATCH] helm: add sa annotations (#4640) * helm: add sa annotations * rm: test annotation * fix: labels bracket Co-authored-by: Dean Sheather Co-authored-by: Dean Sheather --- helm/templates/coder.yaml | 3 +++ helm/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/helm/templates/coder.yaml b/helm/templates/coder.yaml index 02badc277d..9cb272b043 100644 --- a/helm/templates/coder.yaml +++ b/helm/templates/coder.yaml @@ -4,6 +4,9 @@ apiVersion: v1 kind: ServiceAccount metadata: name: coder + annotations: {{ toYaml .Values.coder.serviceAccount.annotations | nindent 4 }} + labels: + {{- include "coder.labels" . | nindent 4 }} --- apiVersion: apps/v1 diff --git a/helm/values.yaml b/helm/values.yaml index 392a53c187..0e2a278948 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -33,6 +33,8 @@ coder: # It is recommended to keep this on if you are using Kubernetes templates # within Coder. workspacePerms: true + # coder.serviceAccount.annotations -- The Coder service account annotations. + annotations: {} # coder.env -- The environment variables to set for Coder. These can be used # to configure all aspects of `coder server`. Please see `coder server --help`