liangyuanpeng / karmada-extend

karmada resourcesbinding watcher
Apache License 2.0
1 stars 1 forks source link

A suggestion for the configmap data structure #7

Open tpiperatgod opened 10 months ago

tpiperatgod commented 10 months ago

Can we make the following changes to the configuration data:

data:
    <cluster A name>:
        type: local
        replicas: 2
    <cluster B name>:
        type: remote
        replicas: 1
    <cluster C name>:
        type: remote
        replicas: 3

So that the local operator can efficiently find its cluster name.

Also, in most cases the sts workload will recommend the order in which the replicas should be started, so can we set the order number in the data? (optional)

like this:

data:
    <cluster A name>:
        type: local
        replicas: 2
        order: 1
    <cluster B name>:
        type: remote
        replicas: 1
        order: 2
    <cluster C name>:
        type: remote
        replicas: 3
        order: 3
liangyuanpeng commented 10 months ago

Can we make the following changes to the configuration data:

Absolutely,This is in the plan, the specific data format may not be exactly the same.

Also, in most cases the sts workload will recommend the order in which the replicas should be started, so can we set the order number in the data? (optional)

I have considered this, but there may be some differences in the specifics and we can take a step forward in this direction