IPAM operator Integration for allocating IPs#302
IPAM operator Integration for allocating IPs#302liwonMS wants to merge 34 commits intomicrosoft:masterfrom
Conversation
* refactored ipam helper * saving --------- Co-authored-by: Jean Laguerre <jlaguerre@microsoft.com>
* saving working version * refactored --------- Co-authored-by: Jean Laguerre <jlaguerre@microsoft.com>
…pi-provider-azurestackhci into users/liwon/ipam
|
Adding description: DescriptionThis PR integrates IP Address Management (IPAM) into the Cluster API Provider for Azure Stack HCI (CAPH), enabling NIC and load balancer IP allocations to be tracked and managed through Kubernetes-native What this PR does
WhyIPAM integration enables centralized IP lifecycle management across HybridAKS clusters, preventing IP conflicts and providing visibility into IP allocations through standard Kubernetes CRDs. |
| ArcVMLnetMocResourceGroup = "Default_Group" | ||
|
|
||
| // ManagementVnetName is the name of the management VNet (skip IPAM for this) | ||
| ManagementVnetName = "vnet-arcbridge" |
There was a problem hiding this comment.
This is accurate for the current Azure Local default, but not for all management clusters that leverage CAPH (e.g. for AKS-HCI product the VNET name is provided by the customer). The group name is more predictable (i.e. group name used for management resources, including the vnet). The group name also differs between Azure Local and AKS-HCI, but it is not a customer provided string.
There was a problem hiding this comment.
a later check checks for the group name. The IPAM is only enabled if the vnet is in the Arc VM Default_Group. Will also enhance the check for Arc VM specific tag on the vnet so we only exercise ipam code when it's Arc VM lnets.
# Conflicts: # cmd/manager/main.go # controllers/azurestackhcicluster_controller.go # controllers/azurestackhciloadbalancer_controller.go # controllers/azurestackhciloadbalancer_virtualmachine.go # controllers/azurestackhcivirtualmachine_controller.go # go.mod # go.sum
Users/liwon/merge2
No description provided.