Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
[stable/prometheus-node-exporter] Add options to change volume mount …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
kaarolch authored and k8s-ci-robot committed Feb 18, 2019
1 parent 4bb602b commit b032d01
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion stable/prometheus-node-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
11 changes: 7 additions & 4 deletions stable/prometheus-node-exporter/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -92,4 +95,4 @@ spec:
hostPath:
path: {{ $mount.hostPath }}
{{- end }}
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions stable/prometheus-node-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,4 @@ extraHostVolumeMounts: {}
# hostPath: <hostPath>
# mountPath: <mountPath>
# readOnly: true|false
# mountPropagation: None|HostToContainer|Bidirectional

0 comments on commit b032d01

Please sign in to comment.