[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:
Wei Tie
2018-08-03 09:39:26 -07:00
committed by k8s-ci-robot
parent e7619809f1
commit 3a3169f2a2
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -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.
+1
View File
@@ -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` |
+3 -2
View File
@@ -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
+4
View File
@@ -21,6 +21,10 @@ image:
# pullSecrets:
# - myRegistrKeySecretName
securityContext:
runAsUser: 472
fsGroup: 472
downloadDashboardsImage:
repository: appropriate/curl
tag: latest