Skip to content

Commit

Permalink
feat: support environment variables in manager (#142)
Browse files Browse the repository at this point in the history
* Add helper map => env obj

* Support additional envs in manager deployment

* Rename envs -> env

* Add env suppport

* chore(ot-operator): bump chart version

* feat(env): move range to deployment
  • Loading branch information
mat-rumian authored Mar 9, 2022
1 parent bd22888 commit 249a2a0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/opentelemetry-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: opentelemetry-operator
version: 0.6.3
version: 0.6.4
description: OpenTelemetry Operator Helm chart for Kubernetes
type: application
home: https://opentelemetry.io/
Expand Down
7 changes: 7 additions & 0 deletions charts/opentelemetry-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ spec:
{{- end }}
command:
- /manager
{{- if .Values.manager.env }}
env:
{{- range $name, $value := .Values.manager.env }}
- name: {{ $name }}
value: {{ $value | quote -}}
{{- end }}
{{- end }}
image: "{{ .Values.manager.image.repository }}:{{ .Values.manager.image.tag }}"
name: manager
ports:
Expand Down
3 changes: 3 additions & 0 deletions charts/opentelemetry-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ manager:
requests:
cpu: 100m
memory: 64Mi
## Adds additional environment variables
## e.g ENV_VAR: env_value
env:

## Provide OpenTelemetry Operator kube-rbac-proxy container image.
##
Expand Down

0 comments on commit 249a2a0

Please sign in to comment.