Skip to content

Commit 65535ef

Browse files
authored
Merge pull request #119 from rosmo/helm-sa-annotations
Add service account specific annotations for Helm chart
2 parents dafb2ad + e7ed3ff commit 65535ef

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

deploy/chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type: application
99
# This is the chart version. This version number should be incremented each time you make changes
1010
# to the chart and its templates, including the app version.
1111
# Versions are expected to follow Semantic Versioning (https://semver.org/)
12-
version: 0.1.1
12+
version: 0.1.2
1313

1414
# This is the version number of the application being deployed. This version number should be
1515
# incremented each time you make changes to the application. Versions are not expected to

deploy/chart/templates/service-account.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ metadata:
66
namespace: {{ include "autoneg.namespace" . | quote }}
77
labels: {{- include "autoneg.labels" . | nindent 4 }}
88
app.kubernetes.io/component: controller
9-
{{- with .Values.annotations }}
9+
{{- $annotations := merge .Values.annotations .Values.serviceAccount.annotations -}}
10+
{{- with $annotations }}
1011
annotations:
1112
{{- toYaml . | nindent 4 }}
1213
{{- end }}

deploy/chart/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ replicas: 1
2424
serviceAccount:
2525
create: true
2626
name: autoneg-controller-manager
27+
annotations: {}
2728

2829
nodeSelector:
2930
iam.gke.io/gke-metadata-server-enabled: "true"

0 commit comments

Comments
 (0)