Skip to content

Commit

Permalink
Add flag to enable or disable the SDC init container (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdawe authored and shaynafinocchiaro committed Oct 29, 2024
1 parent f598dcf commit e84b0bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/csi-vxflexos/templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ spec:
- name: host-opt-emc-path
mountPath: /host_opt_emc_path
{{- end }}
{{- if and (hasKey .Values.node "sdc") (eq .Values.node.sdc.enabled true) }}
initContainers:
- name: sdc
securityContext:
Expand Down Expand Up @@ -338,6 +339,7 @@ spec:
mountPath: /rules.d
- name: scaleio-path-opt
mountPath: /host_drv_cfg_path
{{- end }}
volumes:
- name: registration-dir
hostPath:
Expand Down
4 changes: 4 additions & 0 deletions charts/csi-vxflexos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ node:
# operator: "Exists"
# effect: "NoSchedule"

sdc:
# enabled: Enable/Disable SDC
enabled: true

# "renameSDC" defines the rename operation for SDC
# Default value: None
renameSDC:
Expand Down

0 comments on commit e84b0bc

Please sign in to comment.