Although networking is defined in the Cluster API's Cluster, we need to deprecate ServiceCIDR and PodCIDR in favour of the newly introduced fields introduced via clastix/kamaji#1176, such as PodCIDRs and ServiceCIDRs.
|
// TenantControlPlane Services CIDR |
|
if len(cluster.Spec.ClusterNetwork.Services.CIDRBlocks) > 0 { |
|
tcp.Spec.NetworkProfile.ServiceCIDR = cluster.Spec.ClusterNetwork.Services.CIDRBlocks[0] |
|
} |
|
// TenantControlPlane Pods CIDR |
|
if len(cluster.Spec.ClusterNetwork.Pods.CIDRBlocks) > 0 { |
|
tcp.Spec.NetworkProfile.PodCIDR = cluster.Spec.ClusterNetwork.Pods.CIDRBlocks[0] |
|
} |
We would need to update the Kamaji dependency in the go.mod and then update the related code.
Although networking is defined in the Cluster API's Cluster, we need to deprecate
ServiceCIDRandPodCIDRin favour of the newly introduced fields introduced via clastix/kamaji#1176, such asPodCIDRsandServiceCIDRs.cluster-api-control-plane-provider-kamaji/controllers/kamajicontrolplane_controller_tcp.go
Lines 70 to 77 in 48a6b86
We would need to update the Kamaji dependency in the
go.modand then update the related code.