Skip to content

Commit

Permalink
feat: Allow additional Jaeger ServiceAccounts to have annotations spe…
Browse files Browse the repository at this point in the history
…cified (#519)

Annotations for ServiceAccounts can now be specified with helm values

Signed-off-by: Nabeel Sadiq <nabeel.sadiq@paytrix.io>
Signed-off-by: Pavel Nikolov <pavelnikolov@users.noreply.github.com>
Co-authored-by: Pavel Nikolov <pavelnikolov@users.noreply.github.com>
  • Loading branch information
nabeelpaytrix and pavelnikolov authored Dec 22, 2023
1 parent c5707b4 commit 483d3a9
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/jaeger/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: 1.51.0
description: A Jaeger Helm chart for Kubernetes
name: jaeger
type: application
version: 0.72.1
version: 0.73.1
# CronJobs require v1.21
kubeVersion: ">= 1.21-0"
keywords:
Expand Down
4 changes: 4 additions & 0 deletions charts/jaeger/templates/allinone-sa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ metadata:
labels:
{{- include "jaeger.labels" . | nindent 4 }}
app.kubernetes.io/component: all-in-one
{{- with .Values.allInOne.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end -}}
4 changes: 4 additions & 0 deletions charts/jaeger/templates/es-index-cleaner-sa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ metadata:
labels:
{{- include "jaeger.labels" . | nindent 4 }}
app.kubernetes.io/component: es-index-cleaner
{{- with .Values.esIndexCleaner.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.esIndexCleaner.serviceAccount.automountServiceAccountToken }}
{{- end -}}
4 changes: 4 additions & 0 deletions charts/jaeger/templates/es-lookback-sa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ metadata:
labels:
{{- include "jaeger.labels" . | nindent 4 }}
app.kubernetes.io/component: es-lookback
{{- with .Values.esLookback.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.esLookback.serviceAccount.automountServiceAccountToken }}
{{- end -}}
4 changes: 4 additions & 0 deletions charts/jaeger/templates/hotrod-sa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ metadata:
labels:
{{- include "jaeger.labels" . | nindent 4 }}
app.kubernetes.io/component: hotrod
{{- with .Values.hotrod.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.hotrod.serviceAccount.automountServiceAccountToken }}
{{- end -}}
4 changes: 4 additions & 0 deletions charts/jaeger/templates/ingester-sa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ metadata:
labels:
{{- include "jaeger.labels" . | nindent 4 }}
app.kubernetes.io/component: ingester
{{- with .Values.ingester.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.ingester.serviceAccount.automountServiceAccountToken }}
{{- end -}}
4 changes: 4 additions & 0 deletions charts/jaeger/templates/spark-sa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ metadata:
labels:
{{- include "jaeger.labels" . | nindent 4 }}
app.kubernetes.io/component: spark
{{- with .Values.spark.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.spark.serviceAccount.automountServiceAccountToken }}
{{- end -}}
7 changes: 7 additions & 0 deletions charts/jaeger/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ allInOne:
# "param": 1
# }
# }
serviceAccount:
annotations: {}
service:
headless: true
collector:
Expand Down Expand Up @@ -261,6 +263,7 @@ ingester:
create: true
# Explicitly mounts the API credentials for the Service Account
automountServiceAccountToken: false
annotations: {}
name:
nodeSelector: {}
tolerations: []
Expand Down Expand Up @@ -702,6 +705,7 @@ spark:
# memory: 128Mi
serviceAccount:
create: true
annotations: {}
# Explicitly mounts the API credentials for the Service Account
automountServiceAccountToken: false
name:
Expand Down Expand Up @@ -746,6 +750,7 @@ esIndexCleaner:
numberOfDays: 7
serviceAccount:
create: true
annotations: {}
# Explicitly mounts the API credentials for the Service Account
automountServiceAccountToken: false
name:
Expand Down Expand Up @@ -841,6 +846,7 @@ esLookback:
# memory: 128Mi
serviceAccount:
create: true
annotations: {}
# Explicitly mounts the API credentials for the Service Account
automountServiceAccountToken: false
name:
Expand Down Expand Up @@ -917,6 +923,7 @@ hotrod:
create: true
# Explicitly mounts the API credentials for the Service Account
automountServiceAccountToken: false
annotations: {}
name:
nodeSelector: {}
tolerations: []
Expand Down

0 comments on commit 483d3a9

Please sign in to comment.