Skip to content

Commit

Permalink
Service accounts additional labels (#78)
Browse files Browse the repository at this point in the history
* feat(workerpool-controller): Support additional labels in workerpool controller service account.

* feat(vcs-agent): Support additional labels in vcs-agent service account.

---------

Co-authored-by: siddharth.deshmukh2 <[email protected]>
  • Loading branch information
siddharthdeshmukh and siddharth.deshmukh2 authored Sep 24, 2024
1 parent 4775e4a commit 457e7fe
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spacelift-workerpool-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: spacelift-workerpool-controller
description: A Helm chart for deploying spacelift workerpool controller
type: application
version: 0.1.0
version: 0.2.0
appVersion: "v0.0.13"

dependencies:
Expand Down
3 changes: 3 additions & 0 deletions spacelift-workerpool-controller/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ metadata:
app.kubernetes.io/created-by: spacelift-workerpool-controller
app.kubernetes.io/part-of: spacelift-workerpool-controller
{{- include "spacelift-workerpool-controller.labels" . | nindent 4 }}
{{- with .Values.controllerManager.serviceAccount.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
annotations:
{{- toYaml .Values.controllerManager.serviceAccount.annotations | nindent 4 }}
1 change: 1 addition & 0 deletions spacelift-workerpool-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ controllerManager:
podAnnotations: {}
serviceAccount:
annotations: {}
labels: {}
nodeSelector: {}
tolerations: []
topologySpreadConstraints: []
Expand Down
2 changes: 1 addition & 1 deletion vcs-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: vcs-agent
description: A Helm chart for deploying Spacelift VCS Agent
type: application
version: 0.1.0
version: 0.2.0

# The appVersion is the version of the VCS Agent binary. Since the chart is currently configured
# to always use the latest version, this is set to "latest".
Expand Down
3 changes: 3 additions & 0 deletions vcs-agent/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
name: {{ include "vcs-agent.serviceAccountName" . }}
labels:
{{- include "vcs-agent.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down
2 changes: 2 additions & 0 deletions vcs-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ serviceAccount:
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
# Labels to add to the service account
labels: {}

vcsagent:
extraEnv: []
Expand Down

0 comments on commit 457e7fe

Please sign in to comment.