-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Docs:
- https://elemental.docs.rancher.com/next/networking
- https://elemental.docs.rancher.com/next/troubleshooting-network
This feature could use e2e testing.
As bare minimum, we can:
- Provision a new Machine using Declarative Networking
- Verify it got the desired IP assigned
- Reset the Machine (by deleting the MachineInventory for example)
- Verify it got the desired IP assigned (after reset)
There is no need to test k8s provisioning, as we expect nothing to change during or due to provisioning.
The test environment will require 2 IPAM CRDs and the InCluster IPAM provider:
kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/cluster-api/main/config/crd/bases/ipam.cluster.x-k8s.io_ipaddressclaims.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/cluster-api/main/config/crd/bases/ipam.cluster.x-k8s.io_ipaddresses.yaml
kubectl apply -f https://github.com/kubernetes-sigs/cluster-api-ipam-provider-in-cluster/releases/download/v0.1.0/ipam-components.yamlAlso note the OS image used need to have nmstatectl installed, so possibly this issue is a pre-requisite: #1519
Alternatively the nmstatectl can be simply installed from the released binaries: https://github.com/nmstate/nmstate/releases