@@ -21,7 +21,6 @@ import (
2121 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2222
2323 infrav1 "sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta2"
24- expinfrav1 "sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta2"
2524 clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
2625)
2726
@@ -327,7 +326,7 @@ type DefaultMachinePoolSpec struct {
327326 // Autoscaling specifies auto scaling behaviour for the default MachinePool. Autoscaling min/max value
328327 // must be equal or multiple of the availability zones count.
329328 // +optional
330- Autoscaling * expinfrav1. RosaMachinePoolAutoScaling `json:"autoscaling,omitempty"`
329+ Autoscaling * AutoScaling `json:"autoscaling,omitempty"`
331330
332331 // VolumeSize set the disk volume size for the default workers machine pool in Gib. The default is 300 GiB.
333332 // +kubebuilder:validation:Minimum=75
@@ -337,6 +336,14 @@ type DefaultMachinePoolSpec struct {
337336 VolumeSize int `json:"volumeSize,omitempty"`
338337}
339338
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+
340347// AWSRolesRef contains references to various AWS IAM roles required for operators to make calls against the AWS API.
341348type AWSRolesRef struct {
342349 // The referenced role must have a trust relationship that allows it to be assumed via web identity.
0 commit comments