curve-operator icon indicating copy to clipboard operation
curve-operator copied to clipboard

Customized selection disk

Open caoxianfei1 opened this issue 1 year ago • 0 comments

We have reserved a field in the API, useSelectedNode which can support custom selection of disks and nodes, but this function has not been implemented yet. At the same time, if this function is realized, the Nodes field under Storage field can be deleted, and only need to be selected according to the Nodes under Spec.

After modification:

useSelectedNodes: true
#selectedNodes:
    - node: curve-operator-node1
      - devices:
        name: /dev/vdd
        mountPath: /data/chunkserver1
        percentage: 90
      - devices:
        name: /dev/vdf
        mountPath: /data/chunkserver2
        percentage: 80
    - node: curve-operator-node2
      - devices:
        name: 
        mountPath: 
        percentage: 

When UseSelectNodes is false, the Nodesfield no longer needs to be specified, and it can be determined according to theNodesfield under theSpec` field.

caoxianfei1 avatar Jun 27 '23 03:06 caoxianfei1