Skip to content

Commit

Permalink
moved type from volumemounts to volumes
Browse files Browse the repository at this point in the history
Signed-off-by: Nicole <[email protected]>
  • Loading branch information
nfrazier08 committed Feb 3, 2024
1 parent e854f99 commit 202ea37
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
14 changes: 7 additions & 7 deletions charts/prometheus-node-exporter/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@ spec:
volumeMounts:
- name: proc
mountPath: /host/proc
{{- if .Values.hostProcFsMount.enabled }}
mountPropagation: {{ .Values.hostProcFsMount.mountPropagation }}
{{- with .Values.hostProcFsMount.mountPropagation }}
mountPropagation: {{ . }}
{{- end }}
readOnly: true
- name: sys
mountPath: /host/sys
{{- if .Values.hostSysFsMount.enabled }}
mountPropagation: {{ .Values.hostSysFsMount.mountPropagation }}
{{- with .Values.hostSysFsMount.mountPropagation }}
mountPropagation: {{ . }}
{{- end }}
readOnly: true
{{- if .Values.hostRootFsMount.enabled }}
Expand All @@ -161,9 +161,6 @@ spec:
{{- with $mount.mountPropagation }}
mountPropagation: {{ . }}
{{- end }}
{{- with $mount.type }}
type: {{ . }}
{{- end }}
{{- end }}
{{- range $_, $mount := .Values.sidecarVolumeMount }}
- name: {{ $mount.name }}
Expand Down Expand Up @@ -276,6 +273,9 @@ spec:
- name: {{ $mount.name }}
hostPath:
path: {{ $mount.hostPath }}
{{- with $mount.hostPath.type }}
type: {{ . }}
{{- end }}
{{- end }}
{{- range $_, $mount := .Values.sidecarVolumeMount }}
- name: {{ $mount.name }}
Expand Down
10 changes: 4 additions & 6 deletions charts/prometheus-node-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -319,15 +319,13 @@ hostRootFsMount:

# Mount the node's proc file system (/) at /host/proc in the container
hostProcFsMount:
enabled: false
# Possible values are None, HostToContainer, and Bidirectional
mountPropagation: HostToContainer
mountPropagation: ""

# Mount the node's sys file system (/) at /host/sys in the container
hostSysFsMount:
enabled: false
# Possible values are None, HostToContainer, and Bidirectional
mountPropagation: HostToContainer
mountPropagation: ""

## Assign a group of affinity scheduling rules
##
Expand Down Expand Up @@ -404,11 +402,11 @@ extraArgs: []
extraHostVolumeMounts: []
# - name: <mountName>
# hostPath: <hostPath>
# https://kubernetes.io/docs/concepts/storage/volumes/#hostpath-volume-types
# type: "" (Default)|DirectoryOrCreate|Directory|FileOrCreate|File|Socket|CharDevice|BlockDevice
# mountPath: <mountPath>
# readOnly: true|false
# mountPropagation: None|HostToContainer|Bidirectional
# https://kubernetes.io/docs/concepts/storage/volumes/#hostpath-volume-types
# type: "" (Default)|DirectoryOrCreate|Directory|FileOrCreate|File|Socket|CharDevice|BlockDevice


## Additional configmaps to be mounted.
Expand Down

0 comments on commit 202ea37

Please sign in to comment.