@@ -617,7 +617,7 @@ func RunCreateCluster(ctx context.Context, f *util.Factory, out io.Writer, c *Cr
617617 if group .Spec .RootVolume == nil {
618618 group .Spec .RootVolume = & api.InstanceRootVolumeSpec {}
619619 }
620- group .Spec .RootVolume .Size = fi . PtrTo (c .ControlPlaneVolumeSize )
620+ group .Spec .RootVolume .Size = new (c.ControlPlaneVolumeSize )
621621 }
622622 }
623623
@@ -626,7 +626,7 @@ func RunCreateCluster(ctx context.Context, f *util.Factory, out io.Writer, c *Cr
626626 if group .Spec .RootVolume == nil {
627627 group .Spec .RootVolume = & api.InstanceRootVolumeSpec {}
628628 }
629- group .Spec .RootVolume .Type = fi . PtrTo (c .ControlPlaneVolumeType )
629+ group .Spec .RootVolume .Type = new (c.ControlPlaneVolumeType )
630630 }
631631 }
632632
@@ -635,7 +635,7 @@ func RunCreateCluster(ctx context.Context, f *util.Factory, out io.Writer, c *Cr
635635 if group .Spec .RootVolume == nil {
636636 group .Spec .RootVolume = & api.InstanceRootVolumeSpec {}
637637 }
638- group .Spec .RootVolume .Size = fi . PtrTo (c .NodeVolumeSize )
638+ group .Spec .RootVolume .Size = new (c.NodeVolumeSize )
639639 }
640640 }
641641
@@ -644,7 +644,7 @@ func RunCreateCluster(ctx context.Context, f *util.Factory, out io.Writer, c *Cr
644644 if group .Spec .RootVolume == nil {
645645 group .Spec .RootVolume = & api.InstanceRootVolumeSpec {}
646646 }
647- group .Spec .RootVolume .Type = fi . PtrTo (c .NodeVolumeType )
647+ group .Spec .RootVolume .Type = new (c.NodeVolumeType )
648648 }
649649 }
650650
@@ -661,7 +661,7 @@ func RunCreateCluster(ctx context.Context, f *util.Factory, out io.Writer, c *Cr
661661 }
662662
663663 if c .DisableSubnetTags {
664- cluster .Spec .Networking .TagSubnets = fi . PtrTo (false )
664+ cluster .Spec .Networking .TagSubnets = new (false )
665665 }
666666
667667 if c .APIPublicName != "" {
@@ -684,7 +684,7 @@ func RunCreateCluster(ctx context.Context, f *util.Factory, out io.Writer, c *Cr
684684 cluster .Spec .KubeProxy = & api.KubeProxyConfig {}
685685 }
686686 if cluster .Spec .KubeProxy .Enabled == nil {
687- cluster .Spec .KubeProxy .Enabled = fi . PtrTo (false )
687+ cluster .Spec .KubeProxy .Enabled = new (false )
688688 }
689689 }
690690
0 commit comments