Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(helm): add helm var to control safe mounts #491

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore(helm): add helm var to control safe mounts
Can be used to either force safeMounts ("always") or to disable them ("no")

Signed-off-by: Tiago Castro <[email protected]>
tiagolobocastro committed Apr 18, 2024

Unverified

This user has not yet uploaded their public signing key.
commit 3e360aadf01607da7b90201e13263799e3d4896f
4 changes: 4 additions & 0 deletions chart/templates/mayastor/csi/csi-node-daemonset.yaml
Original file line number Diff line number Diff line change
@@ -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)"
4 changes: 4 additions & 0 deletions chart/templates/mayastor/io/io-engine-daemonset.yaml
Original file line number Diff line number Diff line change
@@ -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.