Skip to content

Commit

Permalink
chore(bors): merge pull request #491
Browse files Browse the repository at this point in the history
491: chore(helm): add helm var to control safe mounts r=tiagolobocastro a=tiagolobocastro

Can be used to either force safeMounts ("always") or to disable them ("no")

<!

Co-authored-by: Tiago Castro <[email protected]>
  • Loading branch information
mayastor-bors and tiagolobocastro committed Apr 18, 2024
2 parents f2dcf8e + 3e360aa commit c6b81bc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions chart/templates/mayastor/csi/csi-node-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ spec:
- name: MKFS_XFS_ARGS
value: {{ .Values.csi.node.mkfs_args.xfs | quote }}
{{- end }}
{{- if $safeMount := .Values.base.safeMount }}
- name: USE_SAFE_MOUNT
value: {{ $safeMount | quote }}
{{- end }}
args:
- "--csi-socket={{ default .Values.csi.node.pluginMountPath .Values.csi.node.pluginMounthPath }}/{{ .Values.csi.node.socketPath }}"
- "--node-name=$(MY_NODE_NAME)"
Expand Down
4 changes: 4 additions & 0 deletions chart/templates/mayastor/io/io-engine-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ spec:
value: "1"
- name: NEXUS_NVMF_RESV_ENABLE
value: "1"
{{- if $safeMount := .Values.base.safeMount }}
- name: USE_SAFE_MOUNT
value: {{ $safeMount | quote }}
{{- end }}
args:
# The -l argument accepts cpu-list. Indexing starts at zero.
# For example -l 1,2,10-20 means use core 1, 2, 10 to 20.
Expand Down

0 comments on commit c6b81bc

Please sign in to comment.