cluster-api-provider-proxmox
                                
                                 cluster-api-provider-proxmox copied to clipboard
                                
                                    cluster-api-provider-proxmox copied to clipboard
                            
                            
                            
                        Default gateway creation
From @65278:
At the moment, we try to create a default gateway for every interface. That only works by accident and netplan can stop working any time.
Unorganized thoughts:
- I've introduced metrics to routes in 0.4.0, so the default interface route never conflicts with other routes, so netplan can no longer fail on randomly changing the order of interfaces here ... but all extra interface routes get the same metric, so if it starts erroring, it'll still fail.
- getNetworkConfigDataForDevicealways sets a gateway. An cluster-api-provider-in-cluster-ipam object can never not have a gateway. This needs to be patched upstream.
- Perhaps we don't want to use the gateway of IPAM unless we're at the default device. For all further interfaces we can set routes using the newly introduced routing templating from 0.4.0. That way we don't need to change upstream. This is not my preferred solution.