Skip to content

Commit b1ba096

Browse files
committed
Secondary ranges for GCPManagedControlPlane
Allow passing the Pod.CidrBlock and Service.CidrBlock to GCPManagedControlPlane instances.
1 parent 71f39ce commit b1ba096

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cloud/services/container/clusters/reconcile.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ func (s *Service) createCluster(ctx context.Context, log *logr.Logger) error {
281281
if cn.UseIPAliases {
282282
cluster.IpAllocationPolicy = &containerpb.IPAllocationPolicy{}
283283
cluster.IpAllocationPolicy.UseIpAliases = cn.UseIPAliases
284+
cluster.IpAllocationPolicy.ClusterIpv4CidrBlock = cn.Pod.CidrBlock
285+
cluster.IpAllocationPolicy.ServicesIpv4CidrBlock = cn.Service.CidrBlock
284286
}
285287
if cn.PrivateCluster != nil {
286288
cluster.PrivateClusterConfig = &containerpb.PrivateClusterConfig{}

0 commit comments

Comments
 (0)