Skip to content

Commit

Permalink
feat: allow configuring extra command line arguments for jaeger opera…
Browse files Browse the repository at this point in the history
…tor (#551)

Signed-off-by: Alex Szakaly <alex.szakaly@gmail.com>
  • Loading branch information
alex1989hu committed Apr 10, 2024
1 parent 71b8509 commit f8fc3e6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/jaeger-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: jaeger-operator Helm chart for Kubernetes
name: jaeger-operator
version: 2.52.0
version: 2.53.0
appVersion: 1.52.0
home: https://www.jaegertracing.io/
icon: https://www.jaegertracing.io/img/jaeger-icon-reverse-color.svg
Expand Down
1 change: 1 addition & 0 deletions charts/jaeger-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ The following table lists the configurable parameters of the jaeger-operator cha
| `rbac.pspEnabled` | Pod security policy for pod will be created and included in rbac role | `false` |
| `rbac.clusterRole` | ClusterRole will be used by operator ServiceAccount | `false` |
| `serviceAccount.name` | Service account name to use. If not set and create is true, a name is generated using the fullname template | `nil` |
| `extraArgs` | Additional command line arguments arguments passed to the operator | `{}` |
| `extraEnv` | Additional environment variables passed to the operator. For example: name: LOG-LEVEL value: debug | `[]` |
| `replicaCount` | Desired number of operator pods | `1` |
| `resources` | K8s pod resources | `None` |
Expand Down
7 changes: 7 additions & 0 deletions charts/jaeger-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ spec:
{{- if gt $replicaCount 1 }}
- --leader-elect
{{- end }}
{{- range $key, $value := .Values.extraArgs }}
{{- if $value }}
- --{{ $key }}={{ $value }}
{{- else }}
- --{{ $key }}
{{- end }}
{{- end }}
env:
- name: WATCH_NAMESPACE
{{- if .Values.rbac.clusterRole }}
Expand Down
4 changes: 4 additions & 0 deletions charts/jaeger-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ serviceAccount:
# Annotations for serviceAccount
annotations: {}

extraArgs: {}
# Specifies extra command line arguments arguments passed to the operator:
# foo: bar

# Specifies extra environment variables passed to the operator:
extraEnv: []
# Specifies log-level for the operator:
Expand Down

0 comments on commit f8fc3e6

Please sign in to comment.