Skip to content

Commit

Permalink
[bitnami/grafana-operator] Enable env in grafana (#29553)
Browse files Browse the repository at this point in the history
* [bitnami/grafana-operator] Enable env in grafana

Signed-off-by: Sven Thies <[email protected]>

* [bitnami/grafana-operator] bump chart version

Signed-off-by: Sven Thies <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

* chore: rename env to extraEnvVars

Signed-off-by: Sven Thies <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <[email protected]>

* Update format to comply with other repos

Co-authored-by: Juan José Martos <[email protected]>
Signed-off-by: SvenThies <[email protected]>

---------

Signed-off-by: Sven Thies <[email protected]>
Signed-off-by: Bitnami Containers <[email protected]>
Signed-off-by: SvenThies <[email protected]>
Co-authored-by: Bitnami Containers <[email protected]>
Co-authored-by: Juan José Martos <[email protected]>
  • Loading branch information
3 people authored Sep 23, 2024
1 parent e081955 commit b88eacd
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
9 changes: 7 additions & 2 deletions bitnami/grafana-operator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Changelog

## 4.6.4 (2024-09-19)
## 4.7.0 (2024-09-23)

* [bitnami/grafana-operator] Release 4.6.4 ([#29508](https://github.com/bitnami/charts/pull/29508))
* [bitnami/grafana-operator] Enable env in grafana ([#29553](https://github.com/bitnami/charts/pull/29553))

## <small>4.6.4 (2024-09-19)</small>

* [bitnami/grafana-operator] Release 4.6.4 (#29508) ([a0e1c75](https://github.com/bitnami/charts/commit/a0e1c75e5caf51c3ed5b85dde87d26884ad815cf)), closes [#29508](https://github.com/bitnami/charts/issues/29508)
* [bitnami/grafana-operator] Remove duplicated text in README.md (#29410) ([242cdb0](https://github.com/bitnami/charts/commit/242cdb07c5bbc3cae671349a67a6a1c00bf01a2c)), closes [#29410](https://github.com/bitnami/charts/issues/29410)

## <small>4.6.3 (2024-09-12)</small>

Expand Down
2 changes: 1 addition & 1 deletion bitnami/grafana-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ maintainers:
name: grafana-operator
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/grafana-operator
version: 4.6.4
version: 4.7.0
1 change: 1 addition & 0 deletions bitnami/grafana-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ extraDeploy:
| `grafana.pdb.create` | Enable/disable a Pod Disruption Budget creation | `false` |
| `grafana.pdb.minAvailable` | Minimum number/percentage of pods that should remain scheduled | `""` |
| `grafana.pdb.maxUnavailable` | Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `grafana.pdb.minAvailable` and `grafana.pdb.maxUnavailable` are empty. | `""` |
| `grafana.extraEnvVars` | Array containing extra env vars to configure Grafana | `[]` |
| `grafana.envFrom` | Extra environment variable to pass to the running container | `[]` |
| `grafana.client.timeout` | The timeout in seconds for the Grafana Rest API on that instance | `5` |
| `grafana.labels` | Add additional labels to the grafana deployment, service and ingress resources | `{}` |
Expand Down
4 changes: 4 additions & 0 deletions bitnami/grafana-operator/templates/grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ spec:
- name: grafana
image: {{ include "common.images.image" (dict "imageRoot" .Values.grafana.image "global" .Values.global) }}
imagePullPolicy: {{ .Values.grafana.image.pullPolicy }}
{{- if .Values.grafana.extraEnvVars }}
env:
{{- include "common.tplvalues.render" (dict "value" .Values.grafana.extraEnvVars "context" $) | nindent 16 }}
{{- end }}
{{- if .Values.grafana.envFrom }}
envFrom: {{- toYaml .Values.grafana.envFrom | nindent 16 }}
{{- end }}
Expand Down
7 changes: 7 additions & 0 deletions bitnami/grafana-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,13 @@ grafana:
create: false
minAvailable: ""
maxUnavailable: ""
## @param grafana.extraEnvVars Array containing extra env vars to configure Grafana
## For example:
## extraEnvVars:
## - name: MY_ENV
## value: my-env-value
##
extraEnvVars: []
## @param grafana.envFrom Extra environment variable to pass to the running container
## Ref: https://github.com/integr8ly/grafana-operator/blob/master/documentation/deploy_grafana.md#configuring-the-deployment
## e.g:
Expand Down

0 comments on commit b88eacd

Please sign in to comment.