- Related issues: #2828 [BUG][FEATURE] Deny the vlanconfigs overlap with the other
Category:
- Network
Verification Steps
- Prepare a 3 nodes Harvester on local kvm
- Each VM have five NICs attached.
- Create a cluster network
cn1
- Create a vlanconfig
config-all
which applied toall nodes
- Set one of the NIC
- On the same cluster network, create another vlan network
config-one
which applied to onlynode 1
- Provide another NIC
- Click the create button
Expected Results
Under the same Cluster Network:
- When we create vlanconfig on the node that already been applied earlier by another vlanconfig,
it will promopt the following error to prevent creation
admission webhook "validator.harvester-system.harvester-network-webhook" denied the request: Internal error occurred: could not create vlanConfig config-one because it overlaps with other vlanconfigs matching node(s) [n1-110rc3]