[stable/prometheus-node-exporter] Add options to change volume mount propagation (#11194)

* Add options to change volume  mount propagation

Signed-off-by: Karol Chrapek <kaarol@it-flow.pl>

* Add missing new line

Signed-off-by: Karol Chrapek <kaarol@it-flow.pl>
This commit is contained in:
Karol Chrapek
2019-02-18 02:37:01 -08:00
committed by Kubernetes Prow Robot
parent 4bb602bcc8
commit b032d016db
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "0.17.0"
description: A Helm chart for prometheus node-exporter
name: prometheus-node-exporter
version: 1.2.0
version: 1.3.0
home: https://github.com/prometheus/node_exporter/
sources:
- https://github.com/prometheus/node_exporter/
@@ -7,18 +7,18 @@ spec:
selector:
matchLabels:
app: {{ template "prometheus-node-exporter.name" . }}
release: {{ .Release.Name }}
release: {{ .Release.Name }}
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxUnavailable: 1
template:
metadata:
labels: {{ include "prometheus-node-exporter.labels" . | indent 8 }}
spec:
{{- if and .Values.rbac.create .Values.serviceAccount.create }}
serviceAccountName: {{ template "prometheus-node-exporter.serviceAccountName" . }}
{{- end }}
{{- end }}
{{- if .Values.securityContext }}
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
@@ -63,6 +63,9 @@ spec:
- name: {{ $mount.name }}
mountPath: {{ $mount.mountPath }}
readOnly: {{ $mount.readOnly }}
{{- if $mount.mountPropagation }}
mountPropagation: {{ $mount.mountPropagation }}
{{- end }}
{{- end }}
{{- end }}
hostNetwork: true
@@ -92,4 +95,4 @@ spec:
hostPath:
path: {{ $mount.hostPath }}
{{- end }}
{{- end }}
{{- end }}
@@ -87,3 +87,4 @@ extraHostVolumeMounts: {}
# hostPath: <hostPath>
# mountPath: <mountPath>
# readOnly: true|false
# mountPropagation: None|HostToContainer|Bidirectional