Skip to content

Commit a566ae6

Browse files
authored
Merge pull request #1480 from cecilkootz/secondary-ranges
Secondary ranges for GCPManagedControlPlane
2 parents a369469 + b1ba096 commit a566ae6

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)