Skip to content

Commit

Permalink
Merge pull request #119 from rosmo/helm-sa-annotations
Browse files Browse the repository at this point in the history
Add service account specific annotations for Helm chart
  • Loading branch information
rosmo authored Mar 18, 2024
2 parents dafb2ad + e7ed3ff commit 65535ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1
version: 0.1.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 2 additions & 1 deletion deploy/chart/templates/service-account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ metadata:
namespace: {{ include "autoneg.namespace" . | quote }}
labels: {{- include "autoneg.labels" . | nindent 4 }}
app.kubernetes.io/component: controller
{{- with .Values.annotations }}
{{- $annotations := merge .Values.annotations .Values.serviceAccount.annotations -}}
{{- with $annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions deploy/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ replicas: 1
serviceAccount:
create: true
name: autoneg-controller-manager
annotations: {}

nodeSelector:
iam.gke.io/gke-metadata-server-enabled: "true"
Expand Down

0 comments on commit 65535ef

Please sign in to comment.