@@ -21,7 +21,6 @@ import (
21
21
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
22
22
23
23
infrav1 "sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta2"
24
- expinfrav1 "sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta2"
25
24
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
26
25
)
27
26
@@ -327,7 +326,7 @@ type DefaultMachinePoolSpec struct {
327
326
// Autoscaling specifies auto scaling behaviour for the default MachinePool. Autoscaling min/max value
328
327
// must be equal or multiple of the availability zones count.
329
328
// +optional
330
- Autoscaling * expinfrav1. RosaMachinePoolAutoScaling `json:"autoscaling,omitempty"`
329
+ Autoscaling * AutoScaling `json:"autoscaling,omitempty"`
331
330
332
331
// VolumeSize set the disk volume size for the default workers machine pool in Gib. The default is 300 GiB.
333
332
// +kubebuilder:validation:Minimum=75
@@ -337,6 +336,14 @@ type DefaultMachinePoolSpec struct {
337
336
VolumeSize int `json:"volumeSize,omitempty"`
338
337
}
339
338
339
+ // AutoScaling specifies scaling options.
340
+ type AutoScaling struct {
341
+ // +kubebuilder:validation:Minimum=1
342
+ MinReplicas int `json:"minReplicas,omitempty"`
343
+ // +kubebuilder:validation:Minimum=1
344
+ MaxReplicas int `json:"maxReplicas,omitempty"`
345
+ }
346
+
340
347
// AWSRolesRef contains references to various AWS IAM roles required for operators to make calls against the AWS API.
341
348
type AWSRolesRef struct {
342
349
// The referenced role must have a trust relationship that allows it to be assumed via web identity.
0 commit comments