@@ -61,45 +61,6 @@ func setupMachinePoolScope(cl client.Client, ec2Scope scope.EC2Scope) (*scope.Ma
6161 })
6262}
6363
64- func setupCapacityBlocksMachinePoolScope (cl client.Client , ec2Scope scope.EC2Scope ) (* scope.MachinePoolScope , error ) {
65- return scope .NewMachinePoolScope (scope.MachinePoolScopeParams {
66- Client : cl ,
67- InfraCluster : ec2Scope ,
68- Cluster : newCluster (),
69- MachinePool : newMachinePool (),
70- AWSMachinePool : newAWSCapacityBlockMachinePool (),
71- })
72- }
73-
74- func newAWSCapacityBlockMachinePool () * expinfrav1.AWSMachinePool {
75- return & expinfrav1.AWSMachinePool {
76- TypeMeta : metav1.TypeMeta {
77- Kind : "AWSMachinePool" ,
78- APIVersion : "v1" ,
79- },
80- ObjectMeta : metav1.ObjectMeta {
81- Name : "aws-mp-name" ,
82- Namespace : "aws-mp-ns" ,
83- },
84- Spec : expinfrav1.AWSMachinePoolSpec {
85- AvailabilityZones : []string {"us-east-1" },
86- AdditionalTags : infrav1.Tags {},
87- AWSLaunchTemplate : expinfrav1.AWSLaunchTemplate {
88- Name : "aws-launch-template" ,
89- IamInstanceProfile : "instance-profile" ,
90- AMI : infrav1.AMIReference {},
91- InstanceType : "t3.large" ,
92- SSHKeyName : aws .String ("default" ),
93- MarketType : infrav1 .MarketTypeCapacityBlock ,
94- CapacityReservationID : aws .String ("cr-12345678901234567" ),
95- },
96- },
97- Status : expinfrav1.AWSMachinePoolStatus {
98- LaunchTemplateID : "launch-template-id" ,
99- },
100- }
101- }
102-
10364func defaultEC2Tags (name , clusterName string ) []types.Tag {
10465 return []types.Tag {
10566 {
0 commit comments