Skip to content

Commit

Permalink
update review nits
Browse files Browse the repository at this point in the history
Signed-off-by: dongjiang1989 <[email protected]>
  • Loading branch information
dongjiang1989 committed Dec 2, 2023
1 parent 64ebba8 commit 3b4688a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion helm/templates/agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ spec:
- name: ISSUE_MESSAGE_FILE
value: "true"
- name: MAX_VOLUMES_PERNODE
value: "{{ .Values.agent.max_volumes_pre_node }}"
value: "{{ .Values.agent.max_volumes_per_node }}"
{{- if .Values.global.YodaSchedulerSvcIP }}
- name: EXTENDER_SVC_IP
value: "{{ .Values.global.YodaSchedulerSvcIP }}"
Expand Down
2 changes: 1 addition & 1 deletion helm/values-acka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ agent:
volume_name_prefix: yoda
spdk: false
driverMode: node
max_volumes_pre_node: 256
max_volumes_per_node: 256
extender:
name: yoda-scheduler-extender
# scheduling strategy: binpack/spread
Expand Down
2 changes: 1 addition & 1 deletion helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ agent:
# all: agent will start as csi controller and csi node
# node: agent will start as csi node
driverMode: node
max_volumes_pre_node: 256
max_volumes_per_node: 256
extender:
name: open-local-scheduler-extender
# scheduling strategy: binpack/spread
Expand Down
2 changes: 1 addition & 1 deletion pkg/csi/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func newNodeServer(options *driverOptions) *nodeServer {
if volumeNum != "" {
num, err := strconv.ParseInt(volumeNum, 10, 64)
if err != nil {
log.Fatalf("NewNodeServer: MAX_VOLUMES_PERNODE must be int64, but get: %s", volumeNum)
log.Fatalf("NewNodeServer: MAX_VOLUMES_PERNODE must be integer, but get: %s", volumeNum)
} else {
if num < 0 || num > int64(MaxVolumesPerNodeLimited) {
log.Errorf("NewNodeServer: MAX_VOLUMES_PERNODE must between 0-%d, but get: %s", int64(MaxVolumesPerNodeLimited), volumeNum)
Expand Down
4 changes: 2 additions & 2 deletions pkg/csi/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ const (
DirectTag = "direct"
// StripingType striping type
StripingType = "striping"
// DefaultMaxVolumesPerNode define default max volumes one node
// DefaultMaxVolumesPerNode define default max volumes per node
DefaultMaxVolumesPerNode = 64
// MaxVolumesPerNodeLimited define limit max volumes one node
// MaxVolumesPerNodeLimited define limit max volumes per node
MaxVolumesPerNodeLimited = 1024
)

Expand Down

0 comments on commit 3b4688a

Please sign in to comment.