mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/grafana] Add support for overriding securityContext (#6948)
grafana < 5.1 are using 104 as user ID, in order to support upgrading from older version, overridding the grafana image tag with older version, or adding more securityContext, this change allows setting `securityContext` in more flexible way.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: grafana
|
||||
version: 1.12.0
|
||||
version: 1.13.0
|
||||
appVersion: 5.1.3
|
||||
kubeVersion: "^1.8.0-0"
|
||||
description: The leading tool for querying and visualizing time series and metrics.
|
||||
|
||||
@@ -34,6 +34,7 @@ The command removes all the Kubernetes components associated with the chart and
|
||||
|----------------------------|-------------------------------------|---------------------------------------------------------|
|
||||
| `replicas` | Number of nodes | `1` |
|
||||
| `deploymentStrategy` | Deployment strategy | `RollingUpdate` |
|
||||
| `securityContext` | Deployment securityContext | `{"runAsUser": 472, "fsGroup": 472}` |
|
||||
| `image.repository` | Image repository | `grafana/grafana` |
|
||||
| `image.tag` | Image tag. (`Must be >= 5.0.0`) Possible values listed [here](https://hub.docker.com/r/grafana/grafana/tags/).| `5.0.4`|
|
||||
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
|
||||
|
||||
@@ -33,9 +33,10 @@ spec:
|
||||
{{- if .Values.schedulerName }}
|
||||
schedulerName: "{{ .Values.schedulerName }}"
|
||||
{{- end }}
|
||||
{{- if .Values.securityContext }}
|
||||
securityContext:
|
||||
runAsUser: 472
|
||||
fsGroup: 472
|
||||
{{ toYaml .Values.securityContext | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.dashboards }}
|
||||
initContainers:
|
||||
- name: download-dashboards
|
||||
|
||||
@@ -21,6 +21,10 @@ image:
|
||||
# pullSecrets:
|
||||
# - myRegistrKeySecretName
|
||||
|
||||
securityContext:
|
||||
runAsUser: 472
|
||||
fsGroup: 472
|
||||
|
||||
downloadDashboardsImage:
|
||||
repository: appropriate/curl
|
||||
tag: latest
|
||||
|
||||
Reference in New Issue
Block a user