From b032d016db2f9f39acd70d020527e97521cc30ca Mon Sep 17 00:00:00 2001 From: Karol Chrapek Date: Mon, 18 Feb 2019 11:37:01 +0100 Subject: [PATCH] [stable/prometheus-node-exporter] Add options to change volume mount propagation (#11194) * Add options to change volume mount propagation Signed-off-by: Karol Chrapek * Add missing new line Signed-off-by: Karol Chrapek --- stable/prometheus-node-exporter/Chart.yaml | 2 +- .../prometheus-node-exporter/templates/daemonset.yaml | 11 +++++++---- stable/prometheus-node-exporter/values.yaml | 1 + 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/stable/prometheus-node-exporter/Chart.yaml b/stable/prometheus-node-exporter/Chart.yaml index 569c8b1c8f..00e3ac9399 100644 --- a/stable/prometheus-node-exporter/Chart.yaml +++ b/stable/prometheus-node-exporter/Chart.yaml @@ -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/ diff --git a/stable/prometheus-node-exporter/templates/daemonset.yaml b/stable/prometheus-node-exporter/templates/daemonset.yaml index 74261bdc32..dfb15f1d1e 100644 --- a/stable/prometheus-node-exporter/templates/daemonset.yaml +++ b/stable/prometheus-node-exporter/templates/daemonset.yaml @@ -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 }} \ No newline at end of file diff --git a/stable/prometheus-node-exporter/values.yaml b/stable/prometheus-node-exporter/values.yaml index 5f4298c683..fcd7acbdd4 100644 --- a/stable/prometheus-node-exporter/values.yaml +++ b/stable/prometheus-node-exporter/values.yaml @@ -87,3 +87,4 @@ extraHostVolumeMounts: {} # hostPath: # mountPath: # readOnly: true|false +# mountPropagation: None|HostToContainer|Bidirectional