Skip to content

Fully support dual stack of Pod and Service CIDRs #369

Description

@prometherion

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions