Skip to content

Commit f4ea903

Browse files
authored
Merge pull request #3897 from fabian-woelk-el/feature/collout-operator-env-vars
[rollout-operator] Add configuration options for env vars
2 parents 43cde6d + 5671937 commit f4ea903

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

charts/rollout-operator/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: rollout-operator
33
description: "Grafana rollout-operator"
44
type: application
5-
version: 0.33.0
5+
version: 0.33.1
66
appVersion: v0.29.0
77
home: https://github.com/grafana/rollout-operator
88
kubeVersion: ^1.10.0-0

charts/rollout-operator/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Helm chart for deploying [Grafana rollout-operator](https://github.com/grafana/r
44

55
# rollout-operator
66

7-
![Version: 0.33.0](https://img.shields.io/badge/Version-0.33.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.29.0](https://img.shields.io/badge/AppVersion-v0.29.0-informational?style=flat-square)
7+
![Version: 0.33.1](https://img.shields.io/badge/Version-0.33.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.29.0](https://img.shields.io/badge/AppVersion-v0.29.0-informational?style=flat-square)
88

99
Grafana rollout-operator
1010

@@ -49,6 +49,8 @@ Manually applying these CRDs is only required if upgrading from a chart <= v0.32
4949
|-----|------|---------|-------------|
5050
| affinity | object | `{}` | |
5151
| extraArgs | list | `[]` | List of additional CLI arguments to configure rollout-operator (example: `--log.level=info`) |
52+
| extraEnv | list | `[]` | Environment variables to add to rollout-operator container |
53+
| extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to rollout-operator container |
5254
| fullnameOverride | string | `""` | |
5355
| global.commonLabels | object | `{}` | Common labels for all object directly managed by this chart. |
5456
| hostAliases | list | `[]` | hostAliases to add |

charts/rollout-operator/templates/deployment.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,18 @@ spec:
5858
{{- range .Values.extraArgs }}
5959
- {{ . }}
6060
{{- end }}
61+
{{- if .Values.extraEnv }}
62+
env:
63+
{{- with .Values.extraEnv }}
64+
{{- toYaml . | nindent 12 }}
65+
{{- end }}
66+
{{- end }}
67+
{{- if .Values.extraEnvFrom }}
68+
envFrom:
69+
{{- with .Values.extraEnvFrom }}
70+
{{- toYaml . | nindent 12 }}
71+
{{- end }}
72+
{{- end }}
6173
ports:
6274
- name: http-metrics
6375
containerPort: 8001
@@ -86,4 +98,4 @@ spec:
8698
{{- with .Values.tolerations }}
8799
tolerations:
88100
{{- toYaml . | nindent 8 }}
89-
{{- end }}
101+
{{- end }}

charts/rollout-operator/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ securityContext: {}
5656
# -- List of additional CLI arguments to configure rollout-operator (example: `--log.level=info`)
5757
extraArgs: []
5858

59+
# -- Environment variables to add to rollout-operator container
60+
extraEnv: []
61+
62+
# -- Environment variables from secrets or configmaps to add to rollout-operator container
63+
extraEnvFrom: []
64+
5965
resources:
6066
limits:
6167
# cpu: "1"

0 commit comments

Comments
 (0)