opencurve / curve-operator

Curve Storage Orchestration for Kubernetes
23 stars 21 forks source link

Customized selection disk #75

Open caoxianfei1 opened 1 year ago

caoxianfei1 commented 1 year ago

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, theNodesfield no longer needs to be specified, and it can be determined according to theNodesfield under theSpec` field.