Skip to content

Commit ce70535

Browse files
committed
provisiond: use proper slice size
1 parent 393b381 commit ce70535

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/gedis/types/provision/tfgrid_workloads_reservation_k8s.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ func (k TfgridWorkloadsReservationK8S1) ToProvisionType() (provision.Kubernetes,
2828
NetworkID: pkg.NetID(k.NetworkID),
2929
IP: k.Ipaddress,
3030
ClusterSecret: k.ClusterSecret,
31-
MasterIPs: make([]net.IP, 0, len(k.MasterIps)),
32-
SSHKeys: make([]string, 0, len(k.SSHKeys)),
31+
MasterIPs: make([]net.IP, len(k.MasterIps)),
32+
SSHKeys: make([]string, len(k.SSHKeys)),
3333
}
3434

3535
for i, ip := range k.MasterIps {

0 commit comments

Comments
 (0)