@@ -652,7 +652,7 @@ func RunCreateCluster(ctx context.Context, f *util.Factory, out io.Writer, c *Cr
652652 if group .Spec .RootVolume == nil {
653653 group .Spec .RootVolume = & api.InstanceRootVolumeSpec {}
654654 }
655- group .Spec .RootVolume .Size = fi . PtrTo (c .ControlPlaneVolumeSize )
655+ group .Spec .RootVolume .Size = new (c.ControlPlaneVolumeSize )
656656 }
657657 }
658658
@@ -661,7 +661,7 @@ func RunCreateCluster(ctx context.Context, f *util.Factory, out io.Writer, c *Cr
661661 if group .Spec .RootVolume == nil {
662662 group .Spec .RootVolume = & api.InstanceRootVolumeSpec {}
663663 }
664- group .Spec .RootVolume .Type = fi . PtrTo (c .ControlPlaneVolumeType )
664+ group .Spec .RootVolume .Type = new (c.ControlPlaneVolumeType )
665665 }
666666 }
667667
@@ -670,7 +670,7 @@ func RunCreateCluster(ctx context.Context, f *util.Factory, out io.Writer, c *Cr
670670 if group .Spec .RootVolume == nil {
671671 group .Spec .RootVolume = & api.InstanceRootVolumeSpec {}
672672 }
673- group .Spec .RootVolume .Size = fi . PtrTo (c .NodeVolumeSize )
673+ group .Spec .RootVolume .Size = new (c.NodeVolumeSize )
674674 }
675675 }
676676
@@ -679,7 +679,7 @@ func RunCreateCluster(ctx context.Context, f *util.Factory, out io.Writer, c *Cr
679679 if group .Spec .RootVolume == nil {
680680 group .Spec .RootVolume = & api.InstanceRootVolumeSpec {}
681681 }
682- group .Spec .RootVolume .Type = fi . PtrTo (c .NodeVolumeType )
682+ group .Spec .RootVolume .Type = new (c.NodeVolumeType )
683683 }
684684 }
685685
@@ -696,7 +696,7 @@ func RunCreateCluster(ctx context.Context, f *util.Factory, out io.Writer, c *Cr
696696 }
697697
698698 if c .DisableSubnetTags {
699- cluster .Spec .Networking .TagSubnets = fi . PtrTo (false )
699+ cluster .Spec .Networking .TagSubnets = new (false )
700700 }
701701
702702 if c .APIPublicName != "" {
@@ -719,7 +719,7 @@ func RunCreateCluster(ctx context.Context, f *util.Factory, out io.Writer, c *Cr
719719 cluster .Spec .KubeProxy = & api.KubeProxyConfig {}
720720 }
721721 if cluster .Spec .KubeProxy .Enabled == nil {
722- cluster .Spec .KubeProxy .Enabled = fi . PtrTo (false )
722+ cluster .Spec .KubeProxy .Enabled = new (false )
723723 }
724724 }
725725
0 commit comments