diff --git a/pkg/cmds/run.go b/pkg/cmds/run.go index eb0718ac..3ec9ca00 100644 --- a/pkg/cmds/run.go +++ b/pkg/cmds/run.go @@ -33,7 +33,6 @@ import ( ec2api "kubeform.dev/provider-aws/apis/ec2/v1alpha1" infrav1 "sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta1" ekscontrolplanev1 "sigs.k8s.io/cluster-api-provider-aws/v2/controlplane/eks/api/v1beta1" - capaExp "sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/healthz" ) @@ -48,7 +47,6 @@ func init() { utilruntime.Must(infrav1.AddToScheme(scheme)) utilruntime.Must(ec2api.AddToScheme(scheme)) utilruntime.Must(ekscontrolplanev1.AddToScheme(scheme)) - utilruntime.Must(capaExp.AddToScheme(scheme)) } func NewCmdRun() *cobra.Command { diff --git a/pkg/controllers/awsmanagedcontrolplane_controller.go b/pkg/controllers/awsmanagedcontrolplane_controller.go index 75b97aec..20cd7f9d 100644 --- a/pkg/controllers/awsmanagedcontrolplane_controller.go +++ b/pkg/controllers/awsmanagedcontrolplane_controller.go @@ -26,12 +26,8 @@ import ( "k8s.io/klog/v2" ec2api "kubeform.dev/provider-aws/apis/ec2/v1alpha1" eksapi "sigs.k8s.io/cluster-api-provider-aws/v2/controlplane/eks/api/v1beta1" - expapi "sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" - "sigs.k8s.io/controller-runtime/pkg/handler" - "sigs.k8s.io/controller-runtime/pkg/reconcile" - "sigs.k8s.io/controller-runtime/pkg/source" ) // AWSManagedControlPlaneReconciler reconciles a Crossplane object @@ -119,17 +115,5 @@ func (r *AWSManagedControlPlaneReconciler) Reconcile(ctx context.Context, req ct func (r *AWSManagedControlPlaneReconciler) SetupWithManager(mgr ctrl.Manager) error { return ctrl.NewControllerManagedBy(mgr). For(&eksapi.AWSManagedControlPlane{}). - Watches( - &source.Kind{Type: &expapi.AWSManagedMachinePool{}}, - handler.EnqueueRequestsFromMapFunc(func(object client.Object) []reconcile.Request { - reconcileReq := make([]reconcile.Request, 0) - managedCP, err := firewall.GetManagedControlPlane(context.TODO(), r.Client) - if err != nil { - return reconcileReq - } - reconcileReq = append(reconcileReq, reconcile.Request{NamespacedName: client.ObjectKey{Name: managedCP.Name, Namespace: managedCP.Namespace}}) - return reconcileReq - }), - ). Complete(r) } diff --git a/vendor/modules.txt b/vendor/modules.txt index 5dbfae08..b06187d3 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -936,7 +936,6 @@ sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta1 sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta2 sigs.k8s.io/cluster-api-provider-aws/v2/controlplane/eks/api/v1beta1 sigs.k8s.io/cluster-api-provider-aws/v2/controlplane/eks/api/v1beta2 -sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1 sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta2 sigs.k8s.io/cluster-api-provider-aws/v2/feature sigs.k8s.io/cluster-api-provider-aws/v2/iam/api/v1beta1 diff --git a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/awsfargateprofile_types.go b/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/awsfargateprofile_types.go deleted file mode 100644 index d9821bd2..00000000 --- a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/awsfargateprofile_types.go +++ /dev/null @@ -1,162 +0,0 @@ -/* -Copyright 2021 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1beta1 - -import ( - "fmt" - - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - - infrav1 "sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta2" - iamv1 "sigs.k8s.io/cluster-api-provider-aws/v2/iam/api/v1beta1" - clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1" - "sigs.k8s.io/cluster-api/errors" -) - -var ( - // DefaultEKSFargateRole is the name of the default IAM role to use for fargate - // profiles if no other role is supplied in the spec and if iam role creation - // is not enabled. The default can be created using clusterawsadm or created manually. - DefaultEKSFargateRole = fmt.Sprintf("eks-fargate%s", iamv1.DefaultNameSuffix) -) - -// FargateProfileSpec defines the desired state of FargateProfile. -type FargateProfileSpec struct { - // ClusterName is the name of the Cluster this object belongs to. - // +kubebuilder:validation:MinLength=1 - ClusterName string `json:"clusterName"` - - // ProfileName specifies the profile name. - ProfileName string `json:"profileName,omitempty"` - - // SubnetIDs specifies which subnets are used for the - // auto scaling group of this nodegroup. - // +optional - SubnetIDs []string `json:"subnetIDs,omitempty"` - - // AdditionalTags is an optional set of tags to add to AWS resources managed by the AWS provider, in addition to the - // ones added by default. - // +optional - AdditionalTags infrav1.Tags `json:"additionalTags,omitempty"` - - // RoleName specifies the name of IAM role for this fargate pool - // If the role is pre-existing we will treat it as unmanaged - // and not delete it on deletion. If the EKSEnableIAM feature - // flag is true and no name is supplied then a role is created. - // +optional - RoleName string `json:"roleName,omitempty"` - - // Selectors specify fargate pod selectors. - Selectors []FargateSelector `json:"selectors,omitempty"` -} - -// FargateSelector specifies a selector for pods that should run on this fargate pool. -type FargateSelector struct { - // Labels specifies which pod labels this selector should match. - Labels map[string]string `json:"labels,omitempty"` - - // Namespace specifies which namespace this selector should match. - Namespace string `json:"namespace,omitempty"` -} - -// FargateProfileStatus defines the observed state of FargateProfile. -type FargateProfileStatus struct { - // Ready denotes that the FargateProfile is available. - // +kubebuilder:default=false - Ready bool `json:"ready"` - - // FailureReason will be set in the event that there is a terminal problem - // reconciling the FargateProfile and will contain a succinct value suitable - // for machine interpretation. - // - // This field should not be set for transitive errors that a controller - // faces that are expected to be fixed automatically over - // time (like service outages), but instead indicate that something is - // fundamentally wrong with the FargateProfile's spec or the configuration of - // the controller, and that manual intervention is required. Examples - // of terminal errors would be invalid combinations of settings in the - // spec, values that are unsupported by the controller, or the - // responsible controller itself being critically misconfigured. - // - // Any transient errors that occur during the reconciliation of - // FargateProfiles can be added as events to the FargateProfile object - // and/or logged in the controller's output. - // +optional - FailureReason *errors.MachineStatusError `json:"failureReason,omitempty"` - - // FailureMessage will be set in the event that there is a terminal problem - // reconciling the FargateProfile and will contain a more verbose string suitable - // for logging and human consumption. - // - // This field should not be set for transitive errors that a controller - // faces that are expected to be fixed automatically over - // time (like service outages), but instead indicate that something is - // fundamentally wrong with the FargateProfile's spec or the configuration of - // the controller, and that manual intervention is required. Examples - // of terminal errors would be invalid combinations of settings in the - // spec, values that are unsupported by the controller, or the - // responsible controller itself being critically misconfigured. - // - // Any transient errors that occur during the reconciliation of - // FargateProfiles can be added as events to the FargateProfile - // object and/or logged in the controller's output. - // +optional - FailureMessage *string `json:"failureMessage,omitempty"` - - // Conditions defines current state of the Fargate profile. - // +optional - Conditions clusterv1.Conditions `json:"conditions,omitempty"` -} - -// +kubebuilder:object:root=true -// +kubebuilder:resource:path=awsfargateprofiles,scope=Namespaced,categories=cluster-api,shortName=awsfp -// +kubebuilder:subresource:status -// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.ready",description="AWSFargateProfile ready status" -// +kubebuilder:printcolumn:name="ProfileName",type="string",JSONPath=".spec.profileName",description="EKS Fargate profile name" -// +kubebuilder:printcolumn:name="FailureReason",type="string",JSONPath=".status.failureReason",description="Failure reason" - -// AWSFargateProfile is the Schema for the awsfargateprofiles API. -type AWSFargateProfile struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec FargateProfileSpec `json:"spec,omitempty"` - Status FargateProfileStatus `json:"status,omitempty"` -} - -// GetConditions returns the observations of the operational state of the AWSFargateProfile resource. -func (r *AWSFargateProfile) GetConditions() clusterv1.Conditions { - return r.Status.Conditions -} - -// SetConditions sets the underlying service state of the AWSFargateProfile to the predescribed clusterv1.Conditions. -func (r *AWSFargateProfile) SetConditions(conditions clusterv1.Conditions) { - r.Status.Conditions = conditions -} - -// +kubebuilder:object:root=true - -// AWSFargateProfileList contains a list of FargateProfiles. -type AWSFargateProfileList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []AWSFargateProfile `json:"items"` -} - -func init() { - SchemeBuilder.Register(&AWSFargateProfile{}, &AWSFargateProfileList{}) -} diff --git a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/awsmachinepool_types.go b/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/awsmachinepool_types.go deleted file mode 100644 index 823a6c2a..00000000 --- a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/awsmachinepool_types.go +++ /dev/null @@ -1,234 +0,0 @@ -/* -Copyright 2021 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime/schema" - - infrav1 "sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta2" - clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1" - "sigs.k8s.io/cluster-api/errors" -) - -// Constants block. -const ( - // LaunchTemplateLatestVersion defines the launching of the latest version of the template. - LaunchTemplateLatestVersion = "$Latest" -) - -// AWSMachinePoolSpec defines the desired state of AWSMachinePool. -type AWSMachinePoolSpec struct { - // ProviderID is the ARN of the associated ASG - // +optional - ProviderID string `json:"providerID,omitempty"` - - // MinSize defines the minimum size of the group. - // +kubebuilder:default=1 - // +kubebuilder:validation:Minimum=0 - MinSize int32 `json:"minSize"` - - // MaxSize defines the maximum size of the group. - // +kubebuilder:default=1 - // +kubebuilder:validation:Minimum=1 - MaxSize int32 `json:"maxSize"` - - // AvailabilityZones is an array of availability zones instances can run in - AvailabilityZones []string `json:"availabilityZones,omitempty"` - - // Subnets is an array of subnet configurations - // +optional - Subnets []infrav1.AWSResourceReference `json:"subnets,omitempty"` - - // AdditionalTags is an optional set of tags to add to an instance, in addition to the ones added by default by the - // AWS provider. - // +optional - AdditionalTags infrav1.Tags `json:"additionalTags,omitempty"` - - // AWSLaunchTemplate specifies the launch template and version to use when an instance is launched. - // +kubebuilder:validation:Required - AWSLaunchTemplate AWSLaunchTemplate `json:"awsLaunchTemplate"` - - // MixedInstancesPolicy describes how multiple instance types will be used by the ASG. - MixedInstancesPolicy *MixedInstancesPolicy `json:"mixedInstancesPolicy,omitempty"` - - // ProviderIDList are the identification IDs of machine instances provided by the provider. - // This field must match the provider IDs as seen on the node objects corresponding to a machine pool's machine instances. - // +optional - ProviderIDList []string `json:"providerIDList,omitempty"` - - // The amount of time, in seconds, after a scaling activity completes before another scaling activity can start. - // If no value is supplied by user a default value of 300 seconds is set - // +optional - DefaultCoolDown metav1.Duration `json:"defaultCoolDown,omitempty"` - - // RefreshPreferences describes set of preferences associated with the instance refresh request. - // +optional - RefreshPreferences *RefreshPreferences `json:"refreshPreferences,omitempty"` - - // Enable or disable the capacity rebalance autoscaling group feature - // +optional - CapacityRebalance bool `json:"capacityRebalance,omitempty"` -} - -// RefreshPreferences defines the specs for instance refreshing. -type RefreshPreferences struct { - // The strategy to use for the instance refresh. The only valid value is Rolling. - // A rolling update is an update that is applied to all instances in an Auto - // Scaling group until all instances have been updated. - // +optional - Strategy *string `json:"strategy,omitempty"` - - // The number of seconds until a newly launched instance is configured and ready - // to use. During this time, the next replacement will not be initiated. - // The default is to use the value for the health check grace period defined for the group. - // +optional - InstanceWarmup *int64 `json:"instanceWarmup,omitempty"` - - // The amount of capacity as a percentage in ASG that must remain healthy - // during an instance refresh. The default is 90. - // +optional - MinHealthyPercentage *int64 `json:"minHealthyPercentage,omitempty"` -} - -// AWSMachinePoolStatus defines the observed state of AWSMachinePool. -type AWSMachinePoolStatus struct { - // Ready is true when the provider resource is ready. - // +optional - Ready bool `json:"ready"` - - // Replicas is the most recently observed number of replicas - // +optional - Replicas int32 `json:"replicas"` - - // Conditions defines current service state of the AWSMachinePool. - // +optional - Conditions clusterv1.Conditions `json:"conditions,omitempty"` - - // Instances contains the status for each instance in the pool - // +optional - Instances []AWSMachinePoolInstanceStatus `json:"instances,omitempty"` - - // The ID of the launch template - LaunchTemplateID string `json:"launchTemplateID,omitempty"` - - // The version of the launch template - // +optional - LaunchTemplateVersion *string `json:"launchTemplateVersion,omitempty"` - - // FailureReason will be set in the event that there is a terminal problem - // reconciling the Machine and will contain a succinct value suitable - // for machine interpretation. - // - // This field should not be set for transitive errors that a controller - // faces that are expected to be fixed automatically over - // time (like service outages), but instead indicate that something is - // fundamentally wrong with the Machine's spec or the configuration of - // the controller, and that manual intervention is required. Examples - // of terminal errors would be invalid combinations of settings in the - // spec, values that are unsupported by the controller, or the - // responsible controller itself being critically misconfigured. - // - // Any transient errors that occur during the reconciliation of Machines - // can be added as events to the Machine object and/or logged in the - // controller's output. - // +optional - FailureReason *errors.MachineStatusError `json:"failureReason,omitempty"` - - // FailureMessage will be set in the event that there is a terminal problem - // reconciling the Machine and will contain a more verbose string suitable - // for logging and human consumption. - // - // This field should not be set for transitive errors that a controller - // faces that are expected to be fixed automatically over - // time (like service outages), but instead indicate that something is - // fundamentally wrong with the Machine's spec or the configuration of - // the controller, and that manual intervention is required. Examples - // of terminal errors would be invalid combinations of settings in the - // spec, values that are unsupported by the controller, or the - // responsible controller itself being critically misconfigured. - // - // Any transient errors that occur during the reconciliation of Machines - // can be added as events to the Machine object and/or logged in the - // controller's output. - // +optional - FailureMessage *string `json:"failureMessage,omitempty"` - - ASGStatus *ASGStatus `json:"asgStatus,omitempty"` -} - -// AWSMachinePoolInstanceStatus defines the status of the AWSMachinePoolInstance. -type AWSMachinePoolInstanceStatus struct { - // InstanceID is the identification of the Machine Instance within ASG - // +optional - InstanceID string `json:"instanceID,omitempty"` - - // Version defines the Kubernetes version for the Machine Instance - // +optional - Version *string `json:"version,omitempty"` -} - -// +kubebuilder:object:root=true -// +kubebuilder:subresource:status -// +kubebuilder:resource:path=awsmachinepools,scope=Namespaced,categories=cluster-api,shortName=awsmp -// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.ready",description="Machine ready status" -// +kubebuilder:printcolumn:name="Replicas",type="integer",JSONPath=".status.replicas",description="Machine ready status" -// +kubebuilder:printcolumn:name="MinSize",type="integer",JSONPath=".spec.minSize",description="Minimum instanes in ASG" -// +kubebuilder:printcolumn:name="MaxSize",type="integer",JSONPath=".spec.maxSize",description="Maximum instanes in ASG" -// +kubebuilder:printcolumn:name="LaunchTemplate ID",type="string",JSONPath=".status.launchTemplateID",description="Launch Template ID" - -// AWSMachinePool is the Schema for the awsmachinepools API. -type AWSMachinePool struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec AWSMachinePoolSpec `json:"spec,omitempty"` - Status AWSMachinePoolStatus `json:"status,omitempty"` -} - -// +kubebuilder:object:root=true - -// AWSMachinePoolList contains a list of AWSMachinePool. -type AWSMachinePoolList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []AWSMachinePool `json:"items"` -} - -func init() { - SchemeBuilder.Register(&AWSMachinePool{}, &AWSMachinePoolList{}) -} - -// GetConditions returns the observations of the operational state of the AWSMachinePool resource. -func (r *AWSMachinePool) GetConditions() clusterv1.Conditions { - return r.Status.Conditions -} - -// SetConditions sets the underlying service state of the AWSMachinePool to the predescribed clusterv1.Conditions. -func (r *AWSMachinePool) SetConditions(conditions clusterv1.Conditions) { - r.Status.Conditions = conditions -} - -// GetObjectKind will return the ObjectKind of an AWSMachinePool. -func (r *AWSMachinePool) GetObjectKind() schema.ObjectKind { - return &r.TypeMeta -} - -// GetObjectKind will return the ObjectKind of an AWSMachinePoolList. -func (r *AWSMachinePoolList) GetObjectKind() schema.ObjectKind { - return &r.TypeMeta -} diff --git a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/awsmanagedmachinepool_types.go b/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/awsmanagedmachinepool_types.go deleted file mode 100644 index 8705f453..00000000 --- a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/awsmanagedmachinepool_types.go +++ /dev/null @@ -1,272 +0,0 @@ -/* -Copyright 2021 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1beta1 - -import ( - "fmt" - - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - - infrav1 "sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta2" - iamv1 "sigs.k8s.io/cluster-api-provider-aws/v2/iam/api/v1beta1" - clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1" - "sigs.k8s.io/cluster-api/errors" -) - -// ManagedMachineAMIType specifies which AWS AMI to use for a managed MachinePool. -type ManagedMachineAMIType string - -const ( - // Al2x86_64 is the default AMI type. - Al2x86_64 ManagedMachineAMIType = "AL2_x86_64" - // Al2x86_64GPU is the x86-64 GPU AMI type. - Al2x86_64GPU ManagedMachineAMIType = "AL2_x86_64_GPU" - // Al2Arm64 is the Arm AMI type. - Al2Arm64 ManagedMachineAMIType = "AL2_ARM_64" -) - -// ManagedMachinePoolCapacityType specifies the capacity type to be used for the managed MachinePool. -type ManagedMachinePoolCapacityType string - -const ( - // ManagedMachinePoolCapacityTypeOnDemand is the default capacity type, to launch on-demand instances. - ManagedMachinePoolCapacityTypeOnDemand ManagedMachinePoolCapacityType = "onDemand" - // ManagedMachinePoolCapacityTypeSpot is the spot instance capacity type to launch spot instances. - ManagedMachinePoolCapacityTypeSpot ManagedMachinePoolCapacityType = "spot" -) - -var ( - // DefaultEKSNodegroupRole is the name of the default IAM role to use for EKS nodegroups - // if no other role is supplied in the spec and if iam role creation is not enabled. The default - // can be created using clusterawsadm or created manually. - DefaultEKSNodegroupRole = fmt.Sprintf("eks-nodegroup%s", iamv1.DefaultNameSuffix) -) - -// AWSManagedMachinePoolSpec defines the desired state of AWSManagedMachinePool. -type AWSManagedMachinePoolSpec struct { - // EKSNodegroupName specifies the name of the nodegroup in AWS - // corresponding to this MachinePool. If you don't specify a name - // then a default name will be created based on the namespace and - // name of the managed machine pool. - // +optional - EKSNodegroupName string `json:"eksNodegroupName,omitempty"` - - // AvailabilityZones is an array of availability zones instances can run in - AvailabilityZones []string `json:"availabilityZones,omitempty"` - - // SubnetIDs specifies which subnets are used for the - // auto scaling group of this nodegroup - // +optional - SubnetIDs []string `json:"subnetIDs,omitempty"` - - // AdditionalTags is an optional set of tags to add to AWS resources managed by the AWS provider, in addition to the - // ones added by default. - // +optional - AdditionalTags infrav1.Tags `json:"additionalTags,omitempty"` - - // RoleAdditionalPolicies allows you to attach additional polices to - // the node group role. You must enable the EKSAllowAddRoles - // feature flag to incorporate these into the created role. - // +optional - RoleAdditionalPolicies []string `json:"roleAdditionalPolicies,omitempty"` - - // RoleName specifies the name of IAM role for the node group. - // If the role is pre-existing we will treat it as unmanaged - // and not delete it on deletion. If the EKSEnableIAM feature - // flag is true and no name is supplied then a role is created. - // +optional - RoleName string `json:"roleName,omitempty"` - - // AMIVersion defines the desired AMI release version. If no version number - // is supplied then the latest version for the Kubernetes version - // will be used - // +kubebuilder:validation:MinLength:=2 - // +optional - AMIVersion *string `json:"amiVersion,omitempty"` - - // AMIType defines the AMI type - // +kubebuilder:validation:Enum:=AL2_x86_64;AL2_x86_64_GPU;AL2_ARM_64;CUSTOM - // +kubebuilder:default:=AL2_x86_64 - // +optional - AMIType *ManagedMachineAMIType `json:"amiType,omitempty"` - - // Labels specifies labels for the Kubernetes node objects - // +optional - Labels map[string]string `json:"labels,omitempty"` - - // Taints specifies the taints to apply to the nodes of the machine pool - // +optional - Taints Taints `json:"taints,omitempty"` - - // DiskSize specifies the root disk size - // +optional - DiskSize *int32 `json:"diskSize,omitempty"` - - // InstanceType specifies the AWS instance type - // +optional - InstanceType *string `json:"instanceType,omitempty"` - - // Scaling specifies scaling for the ASG behind this pool - // +optional - Scaling *ManagedMachinePoolScaling `json:"scaling,omitempty"` - - // RemoteAccess specifies how machines can be accessed remotely - // +optional - RemoteAccess *ManagedRemoteAccess `json:"remoteAccess,omitempty"` - - // ProviderIDList are the provider IDs of instances in the - // autoscaling group corresponding to the nodegroup represented by this - // machine pool - // +optional - ProviderIDList []string `json:"providerIDList,omitempty"` - - // CapacityType specifies the capacity type for the ASG behind this pool - // +kubebuilder:validation:Enum:=onDemand;spot - // +kubebuilder:default:=onDemand - // +optional - CapacityType *ManagedMachinePoolCapacityType `json:"capacityType,omitempty"` - - // UpdateConfig holds the optional config to control the behaviour of the update - // to the nodegroup. - // +optional - UpdateConfig *UpdateConfig `json:"updateConfig,omitempty"` - - // AWSLaunchTemplate specifies the launch template to use to create the managed node group. - // If AWSLaunchTemplate is specified, certain node group configuraions outside of launch template - // are prohibited (https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html). - // +optional - AWSLaunchTemplate *AWSLaunchTemplate `json:"awsLaunchTemplate,omitempty"` -} - -// ManagedMachinePoolScaling specifies scaling options. -type ManagedMachinePoolScaling struct { - MinSize *int32 `json:"minSize,omitempty"` - MaxSize *int32 `json:"maxSize,omitempty"` -} - -// ManagedRemoteAccess specifies remote access settings for EC2 instances. -type ManagedRemoteAccess struct { - // SSHKeyName specifies which EC2 SSH key can be used to access machines. - // If left empty, the key from the control plane is used. - SSHKeyName *string `json:"sshKeyName,omitempty"` - - // SourceSecurityGroups specifies which security groups are allowed access - SourceSecurityGroups []string `json:"sourceSecurityGroups,omitempty"` - - // Public specifies whether to open port 22 to the public internet - Public bool `json:"public,omitempty"` -} - -// AWSManagedMachinePoolStatus defines the observed state of AWSManagedMachinePool. -type AWSManagedMachinePoolStatus struct { - // Ready denotes that the AWSManagedMachinePool nodegroup has joined - // the cluster - // +kubebuilder:default=false - Ready bool `json:"ready"` - - // Replicas is the most recently observed number of replicas. - // +optional - Replicas int32 `json:"replicas"` - - // The ID of the launch template - // +optional - LaunchTemplateID *string `json:"launchTemplateID,omitempty"` - - // The version of the launch template - // +optional - LaunchTemplateVersion *string `json:"launchTemplateVersion,omitempty"` - - // FailureReason will be set in the event that there is a terminal problem - // reconciling the MachinePool and will contain a succinct value suitable - // for machine interpretation. - // - // This field should not be set for transitive errors that a controller - // faces that are expected to be fixed automatically over - // time (like service outages), but instead indicate that something is - // fundamentally wrong with the Machine's spec or the configuration of - // the controller, and that manual intervention is required. Examples - // of terminal errors would be invalid combinations of settings in the - // spec, values that are unsupported by the controller, or the - // responsible controller itself being critically misconfigured. - // - // Any transient errors that occur during the reconciliation of MachinePools - // can be added as events to the MachinePool object and/or logged in the - // controller's output. - // +optional - FailureReason *errors.MachineStatusError `json:"failureReason,omitempty"` - - // FailureMessage will be set in the event that there is a terminal problem - // reconciling the MachinePool and will contain a more verbose string suitable - // for logging and human consumption. - // - // This field should not be set for transitive errors that a controller - // faces that are expected to be fixed automatically over - // time (like service outages), but instead indicate that something is - // fundamentally wrong with the MachinePool's spec or the configuration of - // the controller, and that manual intervention is required. Examples - // of terminal errors would be invalid combinations of settings in the - // spec, values that are unsupported by the controller, or the - // responsible controller itself being critically misconfigured. - // - // Any transient errors that occur during the reconciliation of MachinePools - // can be added as events to the MachinePool object and/or logged in the - // controller's output. - // +optional - FailureMessage *string `json:"failureMessage,omitempty"` - - // Conditions defines current service state of the managed machine pool - // +optional - Conditions clusterv1.Conditions `json:"conditions,omitempty"` -} - -// +kubebuilder:object:root=true -// +kubebuilder:resource:path=awsmanagedmachinepools,scope=Namespaced,categories=cluster-api,shortName=awsmmp -// +kubebuilder:subresource:status -// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.ready",description="MachinePool ready status" -// +kubebuilder:printcolumn:name="Replicas",type="integer",JSONPath=".status.replicas",description="Number of replicas" - -// AWSManagedMachinePool is the Schema for the awsmanagedmachinepools API. -type AWSManagedMachinePool struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec AWSManagedMachinePoolSpec `json:"spec,omitempty"` - Status AWSManagedMachinePoolStatus `json:"status,omitempty"` -} - -// GetConditions returns the observations of the operational state of the AWSManagedMachinePool resource. -func (r *AWSManagedMachinePool) GetConditions() clusterv1.Conditions { - return r.Status.Conditions -} - -// SetConditions sets the underlying service state of the AWSManagedMachinePool to the predescribed clusterv1.Conditions. -func (r *AWSManagedMachinePool) SetConditions(conditions clusterv1.Conditions) { - r.Status.Conditions = conditions -} - -// +kubebuilder:object:root=true - -// AWSManagedMachinePoolList contains a list of AWSManagedMachinePools. -type AWSManagedMachinePoolList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []AWSManagedMachinePool `json:"items"` -} - -func init() { - SchemeBuilder.Register(&AWSManagedMachinePool{}, &AWSManagedMachinePoolList{}) -} diff --git a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/conditions_consts.go b/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/conditions_consts.go deleted file mode 100644 index 534ebb2b..00000000 --- a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/conditions_consts.go +++ /dev/null @@ -1,104 +0,0 @@ -/* -Copyright 2021 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1beta1 - -import clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1" - -const ( - // ASGReadyCondition reports on current status of the autoscaling group. Ready indicates the group is provisioned. - ASGReadyCondition clusterv1.ConditionType = "ASGReady" - // ASGNotFoundReason used when the autoscaling group couldn't be retrieved. - ASGNotFoundReason = "ASGNotFound" - // ASGProvisionFailedReason used for failures during autoscaling group provisioning. - ASGProvisionFailedReason = "ASGProvisionFailed" - // ASGDeletionInProgress ASG is in a deletion in progress state. - ASGDeletionInProgress = "ASGDeletionInProgress" - - // LaunchTemplateReadyCondition represents the status of an AWSMachinePool's associated Launch Template. - LaunchTemplateReadyCondition clusterv1.ConditionType = "LaunchTemplateReady" - // LaunchTemplateNotFoundReason is used when an associated Launch Template can't be found. - LaunchTemplateNotFoundReason = "LaunchTemplateNotFound" - // LaunchTemplateCreateFailedReason used for failures during Launch Template creation. - LaunchTemplateCreateFailedReason = "LaunchTemplateCreateFailed" - // LaunchTemplateReconcileFailedReason used for failures during Launch Template reconciliation. - LaunchTemplateReconcileFailedReason = "LaunchTemplateReconcileFailed" - - // PreLaunchTemplateUpdateCheckCondition reports if all prerequisite are met for launch template update. - PreLaunchTemplateUpdateCheckCondition clusterv1.ConditionType = "PreLaunchTemplateUpdateCheckSuccess" - // PostLaunchTemplateUpdateOperationCondition reports on successfully completes post launch template update operation. - PostLaunchTemplateUpdateOperationCondition clusterv1.ConditionType = "PostLaunchTemplateUpdateOperationSuccess" - - // PreLaunchTemplateUpdateCheckFailedReason used to report when not all prerequisite are met for launch template update. - PreLaunchTemplateUpdateCheckFailedReason = "PreLaunchTemplateUpdateCheckFailed" - // PostLaunchTemplateUpdateOperationFailedReason used to report when post launch template update operation failed. - PostLaunchTemplateUpdateOperationFailedReason = "PostLaunchTemplateUpdateOperationFailed" - - // InstanceRefreshStartedCondition reports on successfully starting instance refresh. - InstanceRefreshStartedCondition clusterv1.ConditionType = "InstanceRefreshStarted" - // InstanceRefreshNotReadyReason used to report instance refresh is not initiated. - // If there are instance refreshes that are in progress, then a new instance refresh request will fail. - InstanceRefreshNotReadyReason = "InstanceRefreshNotReady" - // InstanceRefreshFailedReason used to report when there instance refresh is not initiated. - InstanceRefreshFailedReason = "InstanceRefreshFailed" -) - -const ( - // EKSNodegroupReadyCondition condition reports on the successful reconciliation of eks control plane. - EKSNodegroupReadyCondition clusterv1.ConditionType = "EKSNodegroupReady" - // EKSNodegroupReconciliationFailedReason used to report failures while reconciling EKS control plane. - EKSNodegroupReconciliationFailedReason = "EKSNodegroupReconciliationFailed" - // WaitingForEKSControlPlaneReason used when the machine pool is waiting for - // EKS control plane infrastructure to be ready before proceeding. - WaitingForEKSControlPlaneReason = "WaitingForEKSControlPlane" -) - -const ( - // EKSFargateProfileReadyCondition condition reports on the successful reconciliation of eks control plane. - EKSFargateProfileReadyCondition clusterv1.ConditionType = "EKSFargateProfileReady" - // EKSFargateCreatingCondition condition reports on whether the fargate - // profile is creating. - EKSFargateCreatingCondition clusterv1.ConditionType = "EKSFargateCreating" - // EKSFargateDeletingCondition used to report that the profile is deleting. - EKSFargateDeletingCondition = "EKSFargateDeleting" - // EKSFargateReconciliationFailedReason used to report failures while reconciling EKS control plane. - EKSFargateReconciliationFailedReason = "EKSFargateReconciliationFailed" - // EKSFargateDeletingReason used when the profile is deleting. - EKSFargateDeletingReason = "Deleting" - // EKSFargateCreatingReason used when the profile is creating. - EKSFargateCreatingReason = "Creating" - // EKSFargateCreatedReason used when the profile is created. - EKSFargateCreatedReason = "Created" - // EKSFargateDeletedReason used when the profile is deleted. - EKSFargateDeletedReason = "Deleted" - // EKSFargateFailedReason used when the profile failed. - EKSFargateFailedReason = "Failed" -) - -const ( - // IAMNodegroupRolesReadyCondition condition reports on the successful - // reconciliation of EKS nodegroup iam roles. - IAMNodegroupRolesReadyCondition clusterv1.ConditionType = "IAMNodegroupRolesReady" - // IAMNodegroupRolesReconciliationFailedReason used to report failures while - // reconciling EKS nodegroup iam roles. - IAMNodegroupRolesReconciliationFailedReason = "IAMNodegroupRolesReconciliationFailed" - // IAMFargateRolesReadyCondition condition reports on the successful - // reconciliation of EKS nodegroup iam roles. - IAMFargateRolesReadyCondition clusterv1.ConditionType = "IAMFargateRolesReady" - // IAMFargateRolesReconciliationFailedReason used to report failures while - // reconciling EKS nodegroup iam roles. - IAMFargateRolesReconciliationFailedReason = "IAMFargateRolesReconciliationFailed" -) diff --git a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/conversion.go b/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/conversion.go deleted file mode 100644 index a018bdc1..00000000 --- a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/conversion.go +++ /dev/null @@ -1,186 +0,0 @@ -/* -Copyright 2021 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1beta1 - -import ( - apiconversion "k8s.io/apimachinery/pkg/conversion" - infrav1beta1 "sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta1" - infrav1 "sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta2" - infrav1exp "sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta2" - utilconversion "sigs.k8s.io/cluster-api/util/conversion" - "sigs.k8s.io/controller-runtime/pkg/conversion" -) - -// ConvertTo converts the v1beta1 AWSMachinePool receiver to a v1beta2 AWSMachinePool. -func (src *AWSMachinePool) ConvertTo(dstRaw conversion.Hub) error { - dst := dstRaw.(*infrav1exp.AWSMachinePool) - if err := Convert_v1beta1_AWSMachinePool_To_v1beta2_AWSMachinePool(src, dst, nil); err != nil { - return err - } - - // Manually restore data. - restored := &infrav1exp.AWSMachinePool{} - if ok, err := utilconversion.UnmarshalData(src, restored); err != nil || !ok { - return err - } - - if restored.Spec.SuspendProcesses != nil { - dst.Spec.SuspendProcesses = restored.Spec.SuspendProcesses - } - if dst.Spec.RefreshPreferences != nil && restored.Spec.RefreshPreferences != nil { - dst.Spec.RefreshPreferences.Disable = restored.Spec.RefreshPreferences.Disable - } - - return nil -} - -// ConvertFrom converts the v1beta2 AWSMachinePool receiver to v1beta1 AWSMachinePool. -func (dst *AWSMachinePool) ConvertFrom(srcRaw conversion.Hub) error { - src := srcRaw.(*infrav1exp.AWSMachinePool) - - if err := Convert_v1beta2_AWSMachinePool_To_v1beta1_AWSMachinePool(src, dst, nil); err != nil { - return err - } - - return utilconversion.MarshalData(src, dst) -} - -// ConvertTo converts the v1beta1 AWSMachinePoolList receiver to a v1beta2 AWSMachinePoolList. -func (src *AWSMachinePoolList) ConvertTo(dstRaw conversion.Hub) error { - dst := dstRaw.(*infrav1exp.AWSMachinePoolList) - return Convert_v1beta1_AWSMachinePoolList_To_v1beta2_AWSMachinePoolList(src, dst, nil) -} - -// ConvertFrom converts the v1beta2 AWSMachinePoolList receiver to v1beta1 AWSMachinePoolList. -func (r *AWSMachinePoolList) ConvertFrom(srcRaw conversion.Hub) error { - src := srcRaw.(*infrav1exp.AWSMachinePoolList) - - return Convert_v1beta2_AWSMachinePoolList_To_v1beta1_AWSMachinePoolList(src, r, nil) -} - -// ConvertTo converts the v1beta1 AWSManagedMachinePool receiver to a v1beta2 AWSManagedMachinePool. -func (src *AWSManagedMachinePool) ConvertTo(dstRaw conversion.Hub) error { - dst := dstRaw.(*infrav1exp.AWSManagedMachinePool) - if err := Convert_v1beta1_AWSManagedMachinePool_To_v1beta2_AWSManagedMachinePool(src, dst, nil); err != nil { - return err - } - - return nil -} - -// ConvertFrom converts the v1beta2 AWSManagedMachinePool receiver to v1beta1 AWSManagedMachinePool. -func (r *AWSManagedMachinePool) ConvertFrom(srcRaw conversion.Hub) error { - src := srcRaw.(*infrav1exp.AWSManagedMachinePool) - - if err := Convert_v1beta2_AWSManagedMachinePool_To_v1beta1_AWSManagedMachinePool(src, r, nil); err != nil { - return err - } - - return nil -} - -// Convert_v1beta2_AWSManagedMachinePoolSpec_To_v1beta1_AWSManagedMachinePoolSpec is a conversion function. -func Convert_v1beta2_AWSManagedMachinePoolSpec_To_v1beta1_AWSManagedMachinePoolSpec(in *infrav1exp.AWSManagedMachinePoolSpec, out *AWSManagedMachinePoolSpec, s apiconversion.Scope) error { - return autoConvert_v1beta2_AWSManagedMachinePoolSpec_To_v1beta1_AWSManagedMachinePoolSpec(in, out, s) -} - -// ConvertTo converts the v1beta1 AWSManagedMachinePoolList receiver to a v1beta2 AWSManagedMachinePoolList. -func (src *AWSManagedMachinePoolList) ConvertTo(dstRaw conversion.Hub) error { - dst := dstRaw.(*infrav1exp.AWSManagedMachinePoolList) - return Convert_v1beta1_AWSManagedMachinePoolList_To_v1beta2_AWSManagedMachinePoolList(src, dst, nil) -} - -// ConvertFrom converts the v1beta2 AWSManagedMachinePoolList receiver to v1beta1 AWSManagedMachinePoolList. -func (r *AWSManagedMachinePoolList) ConvertFrom(srcRaw conversion.Hub) error { - src := srcRaw.(*infrav1exp.AWSManagedMachinePoolList) - - return Convert_v1beta2_AWSManagedMachinePoolList_To_v1beta1_AWSManagedMachinePoolList(src, r, nil) -} - -// ConvertTo converts the v1beta1 AWSFargateProfile receiver to a v1beta2 AWSFargateProfile. -func (src *AWSFargateProfile) ConvertTo(dstRaw conversion.Hub) error { - dst := dstRaw.(*infrav1exp.AWSFargateProfile) - return Convert_v1beta1_AWSFargateProfile_To_v1beta2_AWSFargateProfile(src, dst, nil) -} - -// ConvertFrom converts the v1beta2 AWSFargateProfile receiver to v1beta1 AWSFargateProfile. -func (r *AWSFargateProfile) ConvertFrom(srcRaw conversion.Hub) error { - src := srcRaw.(*infrav1exp.AWSFargateProfile) - - return Convert_v1beta2_AWSFargateProfile_To_v1beta1_AWSFargateProfile(src, r, nil) -} - -// ConvertTo converts the v1beta1 AWSFargateProfileList receiver to a v1beta2 AWSFargateProfileList. -func (src *AWSFargateProfileList) ConvertTo(dstRaw conversion.Hub) error { - dst := dstRaw.(*infrav1exp.AWSFargateProfileList) - return Convert_v1beta1_AWSFargateProfileList_To_v1beta2_AWSFargateProfileList(src, dst, nil) -} - -// ConvertFrom converts the v1beta2 AWSFargateProfileList receiver to v1beta1 AWSFargateProfileList. -func (r *AWSFargateProfileList) ConvertFrom(srcRaw conversion.Hub) error { - src := srcRaw.(*infrav1exp.AWSFargateProfileList) - - return Convert_v1beta2_AWSFargateProfileList_To_v1beta1_AWSFargateProfileList(src, r, nil) -} - -// Convert_v1beta1_AMIReference_To_v1beta2_AMIReference converts the v1beta1 AMIReference receiver to a v1beta2 AMIReference. -func Convert_v1beta1_AMIReference_To_v1beta2_AMIReference(in *infrav1beta1.AMIReference, out *infrav1.AMIReference, s apiconversion.Scope) error { - return infrav1beta1.Convert_v1beta1_AMIReference_To_v1beta2_AMIReference(in, out, s) -} - -// Convert_v1beta2_AMIReference_To_v1beta1_AMIReference converts the v1beta2 AMIReference receiver to a v1beta1 AMIReference. -func Convert_v1beta2_AMIReference_To_v1beta1_AMIReference(in *infrav1.AMIReference, out *infrav1beta1.AMIReference, s apiconversion.Scope) error { - return infrav1beta1.Convert_v1beta2_AMIReference_To_v1beta1_AMIReference(in, out, s) -} - -// Convert_v1beta2_Instance_To_v1beta1_Instance is a conversion function. -func Convert_v1beta2_Instance_To_v1beta1_Instance(in *infrav1.Instance, out *infrav1beta1.Instance, s apiconversion.Scope) error { - return infrav1beta1.Convert_v1beta2_Instance_To_v1beta1_Instance(in, out, s) -} - -// Convert_v1beta1_Instance_To_v1beta2_Instance is a conversion function. -func Convert_v1beta1_Instance_To_v1beta2_Instance(in *infrav1beta1.Instance, out *infrav1.Instance, s apiconversion.Scope) error { - return infrav1beta1.Convert_v1beta1_Instance_To_v1beta2_Instance(in, out, s) -} - -// Convert_v1beta2_AWSLaunchTemplate_To_v1beta1_AWSLaunchTemplate converts the v1beta2 AWSLaunchTemplate receiver to a v1beta1 AWSLaunchTemplate. -func Convert_v1beta2_AWSLaunchTemplate_To_v1beta1_AWSLaunchTemplate(in *infrav1exp.AWSLaunchTemplate, out *AWSLaunchTemplate, s apiconversion.Scope) error { - return autoConvert_v1beta2_AWSLaunchTemplate_To_v1beta1_AWSLaunchTemplate(in, out, s) -} - -func Convert_v1beta1_AWSMachinePoolSpec_To_v1beta2_AWSMachinePoolSpec(in *AWSMachinePoolSpec, out *infrav1exp.AWSMachinePoolSpec, s apiconversion.Scope) error { - return autoConvert_v1beta1_AWSMachinePoolSpec_To_v1beta2_AWSMachinePoolSpec(in, out, s) -} - -func Convert_v1beta2_AWSMachinePoolSpec_To_v1beta1_AWSMachinePoolSpec(in *infrav1exp.AWSMachinePoolSpec, out *AWSMachinePoolSpec, s apiconversion.Scope) error { - return autoConvert_v1beta2_AWSMachinePoolSpec_To_v1beta1_AWSMachinePoolSpec(in, out, s) -} - -func Convert_v1beta1_AutoScalingGroup_To_v1beta2_AutoScalingGroup(in *AutoScalingGroup, out *infrav1exp.AutoScalingGroup, s apiconversion.Scope) error { - return autoConvert_v1beta1_AutoScalingGroup_To_v1beta2_AutoScalingGroup(in, out, s) -} - -func Convert_v1beta2_AutoScalingGroup_To_v1beta1_AutoScalingGroup(in *infrav1exp.AutoScalingGroup, out *AutoScalingGroup, s apiconversion.Scope) error { - // explicitly ignore CurrentlySuspended. - return autoConvert_v1beta2_AutoScalingGroup_To_v1beta1_AutoScalingGroup(in, out, s) -} - -// Convert_v1beta2_RefreshPreferences_To_v1beta1_RefreshPreferences converts the v1beta2 RefreshPreferences receiver to a v1beta1 RefreshPreferences. -func Convert_v1beta2_RefreshPreferences_To_v1beta1_RefreshPreferences(in *infrav1exp.RefreshPreferences, out *RefreshPreferences, s apiconversion.Scope) error { - // spec.refreshPreferences.disable has been added to v1beta2. - return autoConvert_v1beta2_RefreshPreferences_To_v1beta1_RefreshPreferences(in, out, s) -} diff --git a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/doc.go b/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/doc.go deleted file mode 100644 index 7e0a21e3..00000000 --- a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/doc.go +++ /dev/null @@ -1,22 +0,0 @@ -/* -Copyright 2021 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// +gencrdrefdocs:force -// +groupName=infrastructure.cluster.x-k8s.io -// +k8s:defaulter-gen=TypeMeta -// +k8s:conversion-gen=sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta2 - -package v1beta1 diff --git a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/finalizers.go b/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/finalizers.go deleted file mode 100644 index add001f8..00000000 --- a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/finalizers.go +++ /dev/null @@ -1,28 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1beta1 - -const ( - // FargateProfileFinalizer allows the controller to clean up resources on delete. - FargateProfileFinalizer = "awsfargateprofile.infrastructure.cluster.x-k8s.io" - - // MachinePoolFinalizer is the finalizer for the machine pool. - MachinePoolFinalizer = "awsmachinepool.infrastructure.cluster.x-k8s.io" - - // ManagedMachinePoolFinalizer allows the controller to clean up resources on delete. - ManagedMachinePoolFinalizer = "awsmanagedmachinepools.infrastructure.cluster.x-k8s.io" -) diff --git a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/groupversion_info.go b/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/groupversion_info.go deleted file mode 100644 index e84a5133..00000000 --- a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/groupversion_info.go +++ /dev/null @@ -1,38 +0,0 @@ -/* -Copyright 2021 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Package v1beta1 contains API Schema definitions for experimental v1beta1 API group -// +kubebuilder:object:generate=true -// +groupName=infrastructure.cluster.x-k8s.io -package v1beta1 - -import ( - "k8s.io/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/controller-runtime/pkg/scheme" -) - -var ( - // GroupVersion is group version used to register these objects. - GroupVersion = schema.GroupVersion{Group: "infrastructure.cluster.x-k8s.io", Version: "v1beta1"} - - // SchemeBuilder is used to add go types to the GroupVersionKind scheme. - SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} - - // AddToScheme adds the types in this group-version to the given scheme. - AddToScheme = SchemeBuilder.AddToScheme - - localSchemeBuilder = SchemeBuilder.SchemeBuilder -) diff --git a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/types.go b/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/types.go deleted file mode 100644 index f0886db8..00000000 --- a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/types.go +++ /dev/null @@ -1,280 +0,0 @@ -/* -Copyright 2021 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - - infrav1 "sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta2" -) - -const ( - // ExternalResourceGCAnnotation is the name of an annotation that indicates if - // external resources should be garbage collected for the cluster. - ExternalResourceGCAnnotation = "aws.cluster.x-k8s.io/external-resource-gc" -) - -// EBS can be used to automatically set up EBS volumes when an instance is launched. -type EBS struct { - // Encrypted is whether the volume should be encrypted or not. - // +optional - Encrypted bool `json:"encrypted,omitempty"` - - // The size of the volume, in GiB. - // This can be a number from 1-1,024 for standard, 4-16,384 for io1, 1-16,384 - // for gp2, and 500-16,384 for st1 and sc1. If you specify a snapshot, the volume - // size must be equal to or larger than the snapshot size. - // +optional - VolumeSize int64 `json:"volumeSize,omitempty"` - - // The volume type - // For more information, see Amazon EBS Volume Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) - // +kubebuilder:validation:Enum=standard;io1;gp2;st1;sc1;io2 - // +optional - VolumeType string `json:"volumeType,omitempty"` -} - -// BlockDeviceMapping specifies the block devices for the instance. -// You can specify virtual devices and EBS volumes. -type BlockDeviceMapping struct { - // The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh). - // +kubebuilder:validation:Required - DeviceName string `json:"deviceName,omitempty"` - - // You can specify either VirtualName or Ebs, but not both. - // +optional - Ebs EBS `json:"ebs,omitempty"` -} - -// AWSLaunchTemplate defines the desired state of AWSLaunchTemplate. -type AWSLaunchTemplate struct { - // The name of the launch template. - Name string `json:"name,omitempty"` - - // The name or the Amazon Resource Name (ARN) of the instance profile associated - // with the IAM role for the instance. The instance profile contains the IAM - // role. - IamInstanceProfile string `json:"iamInstanceProfile,omitempty"` - - // AMI is the reference to the AMI from which to create the machine instance. - // +optional - AMI infrav1.AMIReference `json:"ami,omitempty"` - - // ImageLookupFormat is the AMI naming format to look up the image for this - // machine It will be ignored if an explicit AMI is set. Supports - // substitutions for {{.BaseOS}} and {{.K8sVersion}} with the base OS and - // kubernetes version, respectively. The BaseOS will be the value in - // ImageLookupBaseOS or ubuntu (the default), and the kubernetes version as - // defined by the packages produced by kubernetes/release without v as a - // prefix: 1.13.0, 1.12.5-mybuild.1, or 1.17.3. For example, the default - // image format of capa-ami-{{.BaseOS}}-?{{.K8sVersion}}-* will end up - // searching for AMIs that match the pattern capa-ami-ubuntu-?1.18.0-* for a - // Machine that is targeting kubernetes v1.18.0 and the ubuntu base OS. See - // also: https://golang.org/pkg/text/template/ - // +optional - ImageLookupFormat string `json:"imageLookupFormat,omitempty"` - - // ImageLookupOrg is the AWS Organization ID to use for image lookup if AMI is not set. - ImageLookupOrg string `json:"imageLookupOrg,omitempty"` - - // ImageLookupBaseOS is the name of the base operating system to use for - // image lookup the AMI is not set. - ImageLookupBaseOS string `json:"imageLookupBaseOS,omitempty"` - - // InstanceType is the type of instance to create. Example: m4.xlarge - InstanceType string `json:"instanceType,omitempty"` - - // RootVolume encapsulates the configuration options for the root volume - // +optional - RootVolume *infrav1.Volume `json:"rootVolume,omitempty"` - - // SSHKeyName is the name of the ssh key to attach to the instance. Valid values are empty string - // (do not use SSH keys), a valid SSH key name, or omitted (use the default SSH key name) - // +optional - SSHKeyName *string `json:"sshKeyName,omitempty"` - - // VersionNumber is the version of the launch template that is applied. - // Typically a new version is created when at least one of the following happens: - // 1) A new launch template spec is applied. - // 2) One or more parameters in an existing template is changed. - // 3) A new AMI is discovered. - VersionNumber *int64 `json:"versionNumber,omitempty"` - - // AdditionalSecurityGroups is an array of references to security groups that should be applied to the - // instances. These security groups would be set in addition to any security groups defined - // at the cluster level or in the actuator. - // +optional - AdditionalSecurityGroups []infrav1.AWSResourceReference `json:"additionalSecurityGroups,omitempty"` - - // SpotMarketOptions are options for configuring AWSMachinePool instances to be run using AWS Spot instances. - SpotMarketOptions *infrav1.SpotMarketOptions `json:"spotMarketOptions,omitempty"` -} - -// Overrides are used to override the instance type specified by the launch template with multiple -// instance types that can be used to launch On-Demand Instances and Spot Instances. -type Overrides struct { - InstanceType string `json:"instanceType"` -} - -// OnDemandAllocationStrategy indicates how to allocate instance types to fulfill On-Demand capacity. -type OnDemandAllocationStrategy string - -var ( - // OnDemandAllocationStrategyPrioritized uses the order of instance type overrides - // for the LaunchTemplate to define the launch priority of each instance type. - OnDemandAllocationStrategyPrioritized = OnDemandAllocationStrategy("prioritized") -) - -// SpotAllocationStrategy indicates how to allocate instances across Spot Instance pools. -type SpotAllocationStrategy string - -var ( - // SpotAllocationStrategyLowestPrice will make the Auto Scaling group launch - // instances using the Spot pools with the lowest price, and evenly allocates - // your instances across the number of Spot pools that you specify. - SpotAllocationStrategyLowestPrice = SpotAllocationStrategy("lowest-price") - - // SpotAllocationStrategyCapacityOptimized will make the Auto Scaling group launch - // instances using Spot pools that are optimally chosen based on the available Spot capacity. - SpotAllocationStrategyCapacityOptimized = SpotAllocationStrategy("capacity-optimized") -) - -// InstancesDistribution to configure distribution of On-Demand Instances and Spot Instances. -type InstancesDistribution struct { - // +kubebuilder:validation:Enum=prioritized - // +kubebuilder:default=prioritized - OnDemandAllocationStrategy OnDemandAllocationStrategy `json:"onDemandAllocationStrategy,omitempty"` - - // +kubebuilder:validation:Enum=lowest-price;capacity-optimized - // +kubebuilder:default=lowest-price - SpotAllocationStrategy SpotAllocationStrategy `json:"spotAllocationStrategy,omitempty"` - - // +kubebuilder:default=0 - OnDemandBaseCapacity *int64 `json:"onDemandBaseCapacity,omitempty"` - - // +kubebuilder:default=100 - OnDemandPercentageAboveBaseCapacity *int64 `json:"onDemandPercentageAboveBaseCapacity,omitempty"` -} - -// MixedInstancesPolicy for an Auto Scaling group. -type MixedInstancesPolicy struct { - InstancesDistribution *InstancesDistribution `json:"instancesDistribution,omitempty"` - Overrides []Overrides `json:"overrides,omitempty"` -} - -// Tags is a mapping for tags. -type Tags map[string]string - -// AutoScalingGroup describes an AWS autoscaling group. -type AutoScalingGroup struct { - // The tags associated with the instance. - ID string `json:"id,omitempty"` - Tags infrav1.Tags `json:"tags,omitempty"` - Name string `json:"name,omitempty"` - DesiredCapacity *int32 `json:"desiredCapacity,omitempty"` - MaxSize int32 `json:"maxSize,omitempty"` - MinSize int32 `json:"minSize,omitempty"` - PlacementGroup string `json:"placementGroup,omitempty"` - Subnets []string `json:"subnets,omitempty"` - DefaultCoolDown metav1.Duration `json:"defaultCoolDown,omitempty"` - CapacityRebalance bool `json:"capacityRebalance,omitempty"` - - MixedInstancesPolicy *MixedInstancesPolicy `json:"mixedInstancesPolicy,omitempty"` - Status ASGStatus - Instances []infrav1.Instance `json:"instances,omitempty"` -} - -// ASGStatus is a status string returned by the autoscaling API. -type ASGStatus string - -var ( - // ASGStatusDeleteInProgress is the string representing an ASG that is currently deleting. - ASGStatusDeleteInProgress = ASGStatus("Delete in progress") -) - -// TaintEffect is the effect for a Kubernetes taint. -type TaintEffect string - -var ( - // TaintEffectNoSchedule is a taint that indicates that a pod shouldn't be scheduled on a node - // unless it can tolerate the taint. - TaintEffectNoSchedule = TaintEffect("no-schedule") - // TaintEffectNoExecute is a taint that indicates that a pod shouldn't be schedule on a node - // unless it can tolerate it. And if its already running on the node it will be evicted. - TaintEffectNoExecute = TaintEffect("no-execute") - // TaintEffectPreferNoSchedule is a taint that indicates that there is a "preference" that pods shouldn't - // be scheduled on a node unless it can tolerate the taint. the scheduler will try to avoid placing the pod - // but it may still run on the node if there is no other option. - TaintEffectPreferNoSchedule = TaintEffect("prefer-no-schedule") -) - -// Taint defines the specs for a Kubernetes taint. -type Taint struct { - // Effect specifies the effect for the taint - // +kubebuilder:validation:Required - // +kubebuilder:validation:Enum=no-schedule;no-execute;prefer-no-schedule - Effect TaintEffect `json:"effect"` - // Key is the key of the taint - // +kubebuilder:validation:Required - Key string `json:"key"` - // Value is the value of the taint - // +kubebuilder:validation:Required - Value string `json:"value"` -} - -// Equals is used to test if 2 taints are equal. -func (t *Taint) Equals(other *Taint) bool { - if t == nil || other == nil { - return t == other - } - - return t.Effect == other.Effect && - t.Key == other.Key && - t.Value == other.Value -} - -// Taints is an array of Taints. -type Taints []Taint - -// Contains checks for existence of a matching taint. -func (t *Taints) Contains(taint *Taint) bool { - for _, t := range *t { - if t.Equals(taint) { - return true - } - } - - return false -} - -// UpdateConfig is the configuration options for updating a nodegroup. Only one of MaxUnavailable -// and MaxUnavailablePercentage should be specified. -type UpdateConfig struct { - // MaxUnavailable is the maximum number of nodes unavailable at once during a version update. - // Nodes will be updated in parallel. The maximum number is 100. - // +optional - // +kubebuilder:validation:Maximum=100 - // +kubebuilder:validation:Minimum=1 - MaxUnavailable *int `json:"maxUnavailable,omitempty"` - - // MaxUnavailablePercentage is the maximum percentage of nodes unavailable during a version update. This - // percentage of nodes will be updated in parallel, up to 100 nodes at once. - // +optional - // +kubebuilder:validation:Maximum=100 - // +kubebuilder:validation:Minimum=1 - MaxUnavailablePercentage *int `json:"maxUnavailablePrecentage,omitempty"` -} diff --git a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/zz_generated.conversion.go b/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/zz_generated.conversion.go deleted file mode 100644 index 14a33e88..00000000 --- a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/zz_generated.conversion.go +++ /dev/null @@ -1,1109 +0,0 @@ -//go:build !ignore_autogenerated_conversions -// +build !ignore_autogenerated_conversions - -/* -Copyright The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by conversion-gen. DO NOT EDIT. - -package v1beta1 - -import ( - unsafe "unsafe" - - conversion "k8s.io/apimachinery/pkg/conversion" - runtime "k8s.io/apimachinery/pkg/runtime" - apiv1beta1 "sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta1" - apiv1beta2 "sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta2" - v1beta2 "sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta2" - clusterapiapiv1beta1 "sigs.k8s.io/cluster-api/api/v1beta1" - errors "sigs.k8s.io/cluster-api/errors" -) - -func init() { - localSchemeBuilder.Register(RegisterConversions) -} - -// RegisterConversions adds conversion functions to the given scheme. -// Public to allow building arbitrary schemes. -func RegisterConversions(s *runtime.Scheme) error { - if err := s.AddGeneratedConversionFunc((*AWSFargateProfile)(nil), (*v1beta2.AWSFargateProfile)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_AWSFargateProfile_To_v1beta2_AWSFargateProfile(a.(*AWSFargateProfile), b.(*v1beta2.AWSFargateProfile), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.AWSFargateProfile)(nil), (*AWSFargateProfile)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_AWSFargateProfile_To_v1beta1_AWSFargateProfile(a.(*v1beta2.AWSFargateProfile), b.(*AWSFargateProfile), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*AWSFargateProfileList)(nil), (*v1beta2.AWSFargateProfileList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_AWSFargateProfileList_To_v1beta2_AWSFargateProfileList(a.(*AWSFargateProfileList), b.(*v1beta2.AWSFargateProfileList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.AWSFargateProfileList)(nil), (*AWSFargateProfileList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_AWSFargateProfileList_To_v1beta1_AWSFargateProfileList(a.(*v1beta2.AWSFargateProfileList), b.(*AWSFargateProfileList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*AWSLaunchTemplate)(nil), (*v1beta2.AWSLaunchTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_AWSLaunchTemplate_To_v1beta2_AWSLaunchTemplate(a.(*AWSLaunchTemplate), b.(*v1beta2.AWSLaunchTemplate), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*AWSMachinePool)(nil), (*v1beta2.AWSMachinePool)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_AWSMachinePool_To_v1beta2_AWSMachinePool(a.(*AWSMachinePool), b.(*v1beta2.AWSMachinePool), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.AWSMachinePool)(nil), (*AWSMachinePool)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_AWSMachinePool_To_v1beta1_AWSMachinePool(a.(*v1beta2.AWSMachinePool), b.(*AWSMachinePool), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*AWSMachinePoolInstanceStatus)(nil), (*v1beta2.AWSMachinePoolInstanceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_AWSMachinePoolInstanceStatus_To_v1beta2_AWSMachinePoolInstanceStatus(a.(*AWSMachinePoolInstanceStatus), b.(*v1beta2.AWSMachinePoolInstanceStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.AWSMachinePoolInstanceStatus)(nil), (*AWSMachinePoolInstanceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_AWSMachinePoolInstanceStatus_To_v1beta1_AWSMachinePoolInstanceStatus(a.(*v1beta2.AWSMachinePoolInstanceStatus), b.(*AWSMachinePoolInstanceStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*AWSMachinePoolList)(nil), (*v1beta2.AWSMachinePoolList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_AWSMachinePoolList_To_v1beta2_AWSMachinePoolList(a.(*AWSMachinePoolList), b.(*v1beta2.AWSMachinePoolList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.AWSMachinePoolList)(nil), (*AWSMachinePoolList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_AWSMachinePoolList_To_v1beta1_AWSMachinePoolList(a.(*v1beta2.AWSMachinePoolList), b.(*AWSMachinePoolList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*AWSMachinePoolStatus)(nil), (*v1beta2.AWSMachinePoolStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_AWSMachinePoolStatus_To_v1beta2_AWSMachinePoolStatus(a.(*AWSMachinePoolStatus), b.(*v1beta2.AWSMachinePoolStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.AWSMachinePoolStatus)(nil), (*AWSMachinePoolStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_AWSMachinePoolStatus_To_v1beta1_AWSMachinePoolStatus(a.(*v1beta2.AWSMachinePoolStatus), b.(*AWSMachinePoolStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*AWSManagedMachinePool)(nil), (*v1beta2.AWSManagedMachinePool)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_AWSManagedMachinePool_To_v1beta2_AWSManagedMachinePool(a.(*AWSManagedMachinePool), b.(*v1beta2.AWSManagedMachinePool), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.AWSManagedMachinePool)(nil), (*AWSManagedMachinePool)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_AWSManagedMachinePool_To_v1beta1_AWSManagedMachinePool(a.(*v1beta2.AWSManagedMachinePool), b.(*AWSManagedMachinePool), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*AWSManagedMachinePoolList)(nil), (*v1beta2.AWSManagedMachinePoolList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_AWSManagedMachinePoolList_To_v1beta2_AWSManagedMachinePoolList(a.(*AWSManagedMachinePoolList), b.(*v1beta2.AWSManagedMachinePoolList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.AWSManagedMachinePoolList)(nil), (*AWSManagedMachinePoolList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_AWSManagedMachinePoolList_To_v1beta1_AWSManagedMachinePoolList(a.(*v1beta2.AWSManagedMachinePoolList), b.(*AWSManagedMachinePoolList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*AWSManagedMachinePoolSpec)(nil), (*v1beta2.AWSManagedMachinePoolSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_AWSManagedMachinePoolSpec_To_v1beta2_AWSManagedMachinePoolSpec(a.(*AWSManagedMachinePoolSpec), b.(*v1beta2.AWSManagedMachinePoolSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*AWSManagedMachinePoolStatus)(nil), (*v1beta2.AWSManagedMachinePoolStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_AWSManagedMachinePoolStatus_To_v1beta2_AWSManagedMachinePoolStatus(a.(*AWSManagedMachinePoolStatus), b.(*v1beta2.AWSManagedMachinePoolStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.AWSManagedMachinePoolStatus)(nil), (*AWSManagedMachinePoolStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_AWSManagedMachinePoolStatus_To_v1beta1_AWSManagedMachinePoolStatus(a.(*v1beta2.AWSManagedMachinePoolStatus), b.(*AWSManagedMachinePoolStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*BlockDeviceMapping)(nil), (*v1beta2.BlockDeviceMapping)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_BlockDeviceMapping_To_v1beta2_BlockDeviceMapping(a.(*BlockDeviceMapping), b.(*v1beta2.BlockDeviceMapping), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.BlockDeviceMapping)(nil), (*BlockDeviceMapping)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_BlockDeviceMapping_To_v1beta1_BlockDeviceMapping(a.(*v1beta2.BlockDeviceMapping), b.(*BlockDeviceMapping), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*EBS)(nil), (*v1beta2.EBS)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_EBS_To_v1beta2_EBS(a.(*EBS), b.(*v1beta2.EBS), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.EBS)(nil), (*EBS)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_EBS_To_v1beta1_EBS(a.(*v1beta2.EBS), b.(*EBS), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*FargateProfileSpec)(nil), (*v1beta2.FargateProfileSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_FargateProfileSpec_To_v1beta2_FargateProfileSpec(a.(*FargateProfileSpec), b.(*v1beta2.FargateProfileSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.FargateProfileSpec)(nil), (*FargateProfileSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_FargateProfileSpec_To_v1beta1_FargateProfileSpec(a.(*v1beta2.FargateProfileSpec), b.(*FargateProfileSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*FargateProfileStatus)(nil), (*v1beta2.FargateProfileStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_FargateProfileStatus_To_v1beta2_FargateProfileStatus(a.(*FargateProfileStatus), b.(*v1beta2.FargateProfileStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.FargateProfileStatus)(nil), (*FargateProfileStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_FargateProfileStatus_To_v1beta1_FargateProfileStatus(a.(*v1beta2.FargateProfileStatus), b.(*FargateProfileStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*FargateSelector)(nil), (*v1beta2.FargateSelector)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_FargateSelector_To_v1beta2_FargateSelector(a.(*FargateSelector), b.(*v1beta2.FargateSelector), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.FargateSelector)(nil), (*FargateSelector)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_FargateSelector_To_v1beta1_FargateSelector(a.(*v1beta2.FargateSelector), b.(*FargateSelector), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*InstancesDistribution)(nil), (*v1beta2.InstancesDistribution)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_InstancesDistribution_To_v1beta2_InstancesDistribution(a.(*InstancesDistribution), b.(*v1beta2.InstancesDistribution), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.InstancesDistribution)(nil), (*InstancesDistribution)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_InstancesDistribution_To_v1beta1_InstancesDistribution(a.(*v1beta2.InstancesDistribution), b.(*InstancesDistribution), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*ManagedMachinePoolScaling)(nil), (*v1beta2.ManagedMachinePoolScaling)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_ManagedMachinePoolScaling_To_v1beta2_ManagedMachinePoolScaling(a.(*ManagedMachinePoolScaling), b.(*v1beta2.ManagedMachinePoolScaling), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.ManagedMachinePoolScaling)(nil), (*ManagedMachinePoolScaling)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_ManagedMachinePoolScaling_To_v1beta1_ManagedMachinePoolScaling(a.(*v1beta2.ManagedMachinePoolScaling), b.(*ManagedMachinePoolScaling), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*ManagedRemoteAccess)(nil), (*v1beta2.ManagedRemoteAccess)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_ManagedRemoteAccess_To_v1beta2_ManagedRemoteAccess(a.(*ManagedRemoteAccess), b.(*v1beta2.ManagedRemoteAccess), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.ManagedRemoteAccess)(nil), (*ManagedRemoteAccess)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_ManagedRemoteAccess_To_v1beta1_ManagedRemoteAccess(a.(*v1beta2.ManagedRemoteAccess), b.(*ManagedRemoteAccess), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*MixedInstancesPolicy)(nil), (*v1beta2.MixedInstancesPolicy)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_MixedInstancesPolicy_To_v1beta2_MixedInstancesPolicy(a.(*MixedInstancesPolicy), b.(*v1beta2.MixedInstancesPolicy), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.MixedInstancesPolicy)(nil), (*MixedInstancesPolicy)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_MixedInstancesPolicy_To_v1beta1_MixedInstancesPolicy(a.(*v1beta2.MixedInstancesPolicy), b.(*MixedInstancesPolicy), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*Overrides)(nil), (*v1beta2.Overrides)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_Overrides_To_v1beta2_Overrides(a.(*Overrides), b.(*v1beta2.Overrides), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.Overrides)(nil), (*Overrides)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_Overrides_To_v1beta1_Overrides(a.(*v1beta2.Overrides), b.(*Overrides), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RefreshPreferences)(nil), (*v1beta2.RefreshPreferences)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_RefreshPreferences_To_v1beta2_RefreshPreferences(a.(*RefreshPreferences), b.(*v1beta2.RefreshPreferences), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*Taint)(nil), (*v1beta2.Taint)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_Taint_To_v1beta2_Taint(a.(*Taint), b.(*v1beta2.Taint), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.Taint)(nil), (*Taint)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_Taint_To_v1beta1_Taint(a.(*v1beta2.Taint), b.(*Taint), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*UpdateConfig)(nil), (*v1beta2.UpdateConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_UpdateConfig_To_v1beta2_UpdateConfig(a.(*UpdateConfig), b.(*v1beta2.UpdateConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1beta2.UpdateConfig)(nil), (*UpdateConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_UpdateConfig_To_v1beta1_UpdateConfig(a.(*v1beta2.UpdateConfig), b.(*UpdateConfig), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*apiv1beta1.AMIReference)(nil), (*apiv1beta2.AMIReference)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_AMIReference_To_v1beta2_AMIReference(a.(*apiv1beta1.AMIReference), b.(*apiv1beta2.AMIReference), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*AWSMachinePoolSpec)(nil), (*v1beta2.AWSMachinePoolSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_AWSMachinePoolSpec_To_v1beta2_AWSMachinePoolSpec(a.(*AWSMachinePoolSpec), b.(*v1beta2.AWSMachinePoolSpec), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*AutoScalingGroup)(nil), (*v1beta2.AutoScalingGroup)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_AutoScalingGroup_To_v1beta2_AutoScalingGroup(a.(*AutoScalingGroup), b.(*v1beta2.AutoScalingGroup), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*apiv1beta1.Instance)(nil), (*apiv1beta2.Instance)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta1_Instance_To_v1beta2_Instance(a.(*apiv1beta1.Instance), b.(*apiv1beta2.Instance), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*apiv1beta2.AMIReference)(nil), (*apiv1beta1.AMIReference)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_AMIReference_To_v1beta1_AMIReference(a.(*apiv1beta2.AMIReference), b.(*apiv1beta1.AMIReference), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*v1beta2.AWSLaunchTemplate)(nil), (*AWSLaunchTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_AWSLaunchTemplate_To_v1beta1_AWSLaunchTemplate(a.(*v1beta2.AWSLaunchTemplate), b.(*AWSLaunchTemplate), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*v1beta2.AWSMachinePoolSpec)(nil), (*AWSMachinePoolSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_AWSMachinePoolSpec_To_v1beta1_AWSMachinePoolSpec(a.(*v1beta2.AWSMachinePoolSpec), b.(*AWSMachinePoolSpec), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*v1beta2.AWSManagedMachinePoolSpec)(nil), (*AWSManagedMachinePoolSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_AWSManagedMachinePoolSpec_To_v1beta1_AWSManagedMachinePoolSpec(a.(*v1beta2.AWSManagedMachinePoolSpec), b.(*AWSManagedMachinePoolSpec), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*v1beta2.AutoScalingGroup)(nil), (*AutoScalingGroup)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_AutoScalingGroup_To_v1beta1_AutoScalingGroup(a.(*v1beta2.AutoScalingGroup), b.(*AutoScalingGroup), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*v1beta2.RefreshPreferences)(nil), (*RefreshPreferences)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1beta2_RefreshPreferences_To_v1beta1_RefreshPreferences(a.(*v1beta2.RefreshPreferences), b.(*RefreshPreferences), scope) - }); err != nil { - return err - } - return nil -} - -func autoConvert_v1beta1_AWSFargateProfile_To_v1beta2_AWSFargateProfile(in *AWSFargateProfile, out *v1beta2.AWSFargateProfile, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1beta1_FargateProfileSpec_To_v1beta2_FargateProfileSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1beta1_FargateProfileStatus_To_v1beta2_FargateProfileStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_v1beta1_AWSFargateProfile_To_v1beta2_AWSFargateProfile is an autogenerated conversion function. -func Convert_v1beta1_AWSFargateProfile_To_v1beta2_AWSFargateProfile(in *AWSFargateProfile, out *v1beta2.AWSFargateProfile, s conversion.Scope) error { - return autoConvert_v1beta1_AWSFargateProfile_To_v1beta2_AWSFargateProfile(in, out, s) -} - -func autoConvert_v1beta2_AWSFargateProfile_To_v1beta1_AWSFargateProfile(in *v1beta2.AWSFargateProfile, out *AWSFargateProfile, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1beta2_FargateProfileSpec_To_v1beta1_FargateProfileSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1beta2_FargateProfileStatus_To_v1beta1_FargateProfileStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_v1beta2_AWSFargateProfile_To_v1beta1_AWSFargateProfile is an autogenerated conversion function. -func Convert_v1beta2_AWSFargateProfile_To_v1beta1_AWSFargateProfile(in *v1beta2.AWSFargateProfile, out *AWSFargateProfile, s conversion.Scope) error { - return autoConvert_v1beta2_AWSFargateProfile_To_v1beta1_AWSFargateProfile(in, out, s) -} - -func autoConvert_v1beta1_AWSFargateProfileList_To_v1beta2_AWSFargateProfileList(in *AWSFargateProfileList, out *v1beta2.AWSFargateProfileList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]v1beta2.AWSFargateProfile)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1beta1_AWSFargateProfileList_To_v1beta2_AWSFargateProfileList is an autogenerated conversion function. -func Convert_v1beta1_AWSFargateProfileList_To_v1beta2_AWSFargateProfileList(in *AWSFargateProfileList, out *v1beta2.AWSFargateProfileList, s conversion.Scope) error { - return autoConvert_v1beta1_AWSFargateProfileList_To_v1beta2_AWSFargateProfileList(in, out, s) -} - -func autoConvert_v1beta2_AWSFargateProfileList_To_v1beta1_AWSFargateProfileList(in *v1beta2.AWSFargateProfileList, out *AWSFargateProfileList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]AWSFargateProfile)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1beta2_AWSFargateProfileList_To_v1beta1_AWSFargateProfileList is an autogenerated conversion function. -func Convert_v1beta2_AWSFargateProfileList_To_v1beta1_AWSFargateProfileList(in *v1beta2.AWSFargateProfileList, out *AWSFargateProfileList, s conversion.Scope) error { - return autoConvert_v1beta2_AWSFargateProfileList_To_v1beta1_AWSFargateProfileList(in, out, s) -} - -func autoConvert_v1beta1_AWSLaunchTemplate_To_v1beta2_AWSLaunchTemplate(in *AWSLaunchTemplate, out *v1beta2.AWSLaunchTemplate, s conversion.Scope) error { - out.Name = in.Name - out.IamInstanceProfile = in.IamInstanceProfile - out.AMI = in.AMI - out.ImageLookupFormat = in.ImageLookupFormat - out.ImageLookupOrg = in.ImageLookupOrg - out.ImageLookupBaseOS = in.ImageLookupBaseOS - out.InstanceType = in.InstanceType - out.RootVolume = (*apiv1beta2.Volume)(unsafe.Pointer(in.RootVolume)) - out.SSHKeyName = (*string)(unsafe.Pointer(in.SSHKeyName)) - out.VersionNumber = (*int64)(unsafe.Pointer(in.VersionNumber)) - out.AdditionalSecurityGroups = *(*[]apiv1beta2.AWSResourceReference)(unsafe.Pointer(&in.AdditionalSecurityGroups)) - out.SpotMarketOptions = (*apiv1beta2.SpotMarketOptions)(unsafe.Pointer(in.SpotMarketOptions)) - return nil -} - -// Convert_v1beta1_AWSLaunchTemplate_To_v1beta2_AWSLaunchTemplate is an autogenerated conversion function. -func Convert_v1beta1_AWSLaunchTemplate_To_v1beta2_AWSLaunchTemplate(in *AWSLaunchTemplate, out *v1beta2.AWSLaunchTemplate, s conversion.Scope) error { - return autoConvert_v1beta1_AWSLaunchTemplate_To_v1beta2_AWSLaunchTemplate(in, out, s) -} - -func autoConvert_v1beta2_AWSLaunchTemplate_To_v1beta1_AWSLaunchTemplate(in *v1beta2.AWSLaunchTemplate, out *AWSLaunchTemplate, s conversion.Scope) error { - out.Name = in.Name - out.IamInstanceProfile = in.IamInstanceProfile - out.AMI = in.AMI - out.ImageLookupFormat = in.ImageLookupFormat - out.ImageLookupOrg = in.ImageLookupOrg - out.ImageLookupBaseOS = in.ImageLookupBaseOS - out.InstanceType = in.InstanceType - out.RootVolume = (*apiv1beta2.Volume)(unsafe.Pointer(in.RootVolume)) - out.SSHKeyName = (*string)(unsafe.Pointer(in.SSHKeyName)) - out.VersionNumber = (*int64)(unsafe.Pointer(in.VersionNumber)) - out.AdditionalSecurityGroups = *(*[]apiv1beta2.AWSResourceReference)(unsafe.Pointer(&in.AdditionalSecurityGroups)) - out.SpotMarketOptions = (*apiv1beta2.SpotMarketOptions)(unsafe.Pointer(in.SpotMarketOptions)) - return nil -} - -func autoConvert_v1beta1_AWSMachinePool_To_v1beta2_AWSMachinePool(in *AWSMachinePool, out *v1beta2.AWSMachinePool, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1beta1_AWSMachinePoolSpec_To_v1beta2_AWSMachinePoolSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1beta1_AWSMachinePoolStatus_To_v1beta2_AWSMachinePoolStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_v1beta1_AWSMachinePool_To_v1beta2_AWSMachinePool is an autogenerated conversion function. -func Convert_v1beta1_AWSMachinePool_To_v1beta2_AWSMachinePool(in *AWSMachinePool, out *v1beta2.AWSMachinePool, s conversion.Scope) error { - return autoConvert_v1beta1_AWSMachinePool_To_v1beta2_AWSMachinePool(in, out, s) -} - -func autoConvert_v1beta2_AWSMachinePool_To_v1beta1_AWSMachinePool(in *v1beta2.AWSMachinePool, out *AWSMachinePool, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1beta2_AWSMachinePoolSpec_To_v1beta1_AWSMachinePoolSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1beta2_AWSMachinePoolStatus_To_v1beta1_AWSMachinePoolStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_v1beta2_AWSMachinePool_To_v1beta1_AWSMachinePool is an autogenerated conversion function. -func Convert_v1beta2_AWSMachinePool_To_v1beta1_AWSMachinePool(in *v1beta2.AWSMachinePool, out *AWSMachinePool, s conversion.Scope) error { - return autoConvert_v1beta2_AWSMachinePool_To_v1beta1_AWSMachinePool(in, out, s) -} - -func autoConvert_v1beta1_AWSMachinePoolInstanceStatus_To_v1beta2_AWSMachinePoolInstanceStatus(in *AWSMachinePoolInstanceStatus, out *v1beta2.AWSMachinePoolInstanceStatus, s conversion.Scope) error { - out.InstanceID = in.InstanceID - out.Version = (*string)(unsafe.Pointer(in.Version)) - return nil -} - -// Convert_v1beta1_AWSMachinePoolInstanceStatus_To_v1beta2_AWSMachinePoolInstanceStatus is an autogenerated conversion function. -func Convert_v1beta1_AWSMachinePoolInstanceStatus_To_v1beta2_AWSMachinePoolInstanceStatus(in *AWSMachinePoolInstanceStatus, out *v1beta2.AWSMachinePoolInstanceStatus, s conversion.Scope) error { - return autoConvert_v1beta1_AWSMachinePoolInstanceStatus_To_v1beta2_AWSMachinePoolInstanceStatus(in, out, s) -} - -func autoConvert_v1beta2_AWSMachinePoolInstanceStatus_To_v1beta1_AWSMachinePoolInstanceStatus(in *v1beta2.AWSMachinePoolInstanceStatus, out *AWSMachinePoolInstanceStatus, s conversion.Scope) error { - out.InstanceID = in.InstanceID - out.Version = (*string)(unsafe.Pointer(in.Version)) - return nil -} - -// Convert_v1beta2_AWSMachinePoolInstanceStatus_To_v1beta1_AWSMachinePoolInstanceStatus is an autogenerated conversion function. -func Convert_v1beta2_AWSMachinePoolInstanceStatus_To_v1beta1_AWSMachinePoolInstanceStatus(in *v1beta2.AWSMachinePoolInstanceStatus, out *AWSMachinePoolInstanceStatus, s conversion.Scope) error { - return autoConvert_v1beta2_AWSMachinePoolInstanceStatus_To_v1beta1_AWSMachinePoolInstanceStatus(in, out, s) -} - -func autoConvert_v1beta1_AWSMachinePoolList_To_v1beta2_AWSMachinePoolList(in *AWSMachinePoolList, out *v1beta2.AWSMachinePoolList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]v1beta2.AWSMachinePool, len(*in)) - for i := range *in { - if err := Convert_v1beta1_AWSMachinePool_To_v1beta2_AWSMachinePool(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -// Convert_v1beta1_AWSMachinePoolList_To_v1beta2_AWSMachinePoolList is an autogenerated conversion function. -func Convert_v1beta1_AWSMachinePoolList_To_v1beta2_AWSMachinePoolList(in *AWSMachinePoolList, out *v1beta2.AWSMachinePoolList, s conversion.Scope) error { - return autoConvert_v1beta1_AWSMachinePoolList_To_v1beta2_AWSMachinePoolList(in, out, s) -} - -func autoConvert_v1beta2_AWSMachinePoolList_To_v1beta1_AWSMachinePoolList(in *v1beta2.AWSMachinePoolList, out *AWSMachinePoolList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]AWSMachinePool, len(*in)) - for i := range *in { - if err := Convert_v1beta2_AWSMachinePool_To_v1beta1_AWSMachinePool(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -// Convert_v1beta2_AWSMachinePoolList_To_v1beta1_AWSMachinePoolList is an autogenerated conversion function. -func Convert_v1beta2_AWSMachinePoolList_To_v1beta1_AWSMachinePoolList(in *v1beta2.AWSMachinePoolList, out *AWSMachinePoolList, s conversion.Scope) error { - return autoConvert_v1beta2_AWSMachinePoolList_To_v1beta1_AWSMachinePoolList(in, out, s) -} - -func autoConvert_v1beta1_AWSMachinePoolSpec_To_v1beta2_AWSMachinePoolSpec(in *AWSMachinePoolSpec, out *v1beta2.AWSMachinePoolSpec, s conversion.Scope) error { - out.ProviderID = in.ProviderID - out.MinSize = in.MinSize - out.MaxSize = in.MaxSize - out.AvailabilityZones = *(*[]string)(unsafe.Pointer(&in.AvailabilityZones)) - out.Subnets = *(*[]apiv1beta2.AWSResourceReference)(unsafe.Pointer(&in.Subnets)) - out.AdditionalTags = *(*apiv1beta2.Tags)(unsafe.Pointer(&in.AdditionalTags)) - if err := Convert_v1beta1_AWSLaunchTemplate_To_v1beta2_AWSLaunchTemplate(&in.AWSLaunchTemplate, &out.AWSLaunchTemplate, s); err != nil { - return err - } - out.MixedInstancesPolicy = (*v1beta2.MixedInstancesPolicy)(unsafe.Pointer(in.MixedInstancesPolicy)) - out.ProviderIDList = *(*[]string)(unsafe.Pointer(&in.ProviderIDList)) - out.DefaultCoolDown = in.DefaultCoolDown - if in.RefreshPreferences != nil { - in, out := &in.RefreshPreferences, &out.RefreshPreferences - *out = new(v1beta2.RefreshPreferences) - if err := Convert_v1beta1_RefreshPreferences_To_v1beta2_RefreshPreferences(*in, *out, s); err != nil { - return err - } - } else { - out.RefreshPreferences = nil - } - out.CapacityRebalance = in.CapacityRebalance - return nil -} - -func autoConvert_v1beta2_AWSMachinePoolSpec_To_v1beta1_AWSMachinePoolSpec(in *v1beta2.AWSMachinePoolSpec, out *AWSMachinePoolSpec, s conversion.Scope) error { - out.ProviderID = in.ProviderID - out.MinSize = in.MinSize - out.MaxSize = in.MaxSize - out.AvailabilityZones = *(*[]string)(unsafe.Pointer(&in.AvailabilityZones)) - out.Subnets = *(*[]apiv1beta2.AWSResourceReference)(unsafe.Pointer(&in.Subnets)) - out.AdditionalTags = *(*apiv1beta2.Tags)(unsafe.Pointer(&in.AdditionalTags)) - if err := Convert_v1beta2_AWSLaunchTemplate_To_v1beta1_AWSLaunchTemplate(&in.AWSLaunchTemplate, &out.AWSLaunchTemplate, s); err != nil { - return err - } - out.MixedInstancesPolicy = (*MixedInstancesPolicy)(unsafe.Pointer(in.MixedInstancesPolicy)) - out.ProviderIDList = *(*[]string)(unsafe.Pointer(&in.ProviderIDList)) - out.DefaultCoolDown = in.DefaultCoolDown - if in.RefreshPreferences != nil { - in, out := &in.RefreshPreferences, &out.RefreshPreferences - *out = new(RefreshPreferences) - if err := Convert_v1beta2_RefreshPreferences_To_v1beta1_RefreshPreferences(*in, *out, s); err != nil { - return err - } - } else { - out.RefreshPreferences = nil - } - out.CapacityRebalance = in.CapacityRebalance - // WARNING: in.SuspendProcesses requires manual conversion: does not exist in peer-type - return nil -} - -func autoConvert_v1beta1_AWSMachinePoolStatus_To_v1beta2_AWSMachinePoolStatus(in *AWSMachinePoolStatus, out *v1beta2.AWSMachinePoolStatus, s conversion.Scope) error { - out.Ready = in.Ready - out.Replicas = in.Replicas - out.Conditions = *(*clusterapiapiv1beta1.Conditions)(unsafe.Pointer(&in.Conditions)) - out.Instances = *(*[]v1beta2.AWSMachinePoolInstanceStatus)(unsafe.Pointer(&in.Instances)) - out.LaunchTemplateID = in.LaunchTemplateID - out.LaunchTemplateVersion = (*string)(unsafe.Pointer(in.LaunchTemplateVersion)) - out.FailureReason = (*errors.MachineStatusError)(unsafe.Pointer(in.FailureReason)) - out.FailureMessage = (*string)(unsafe.Pointer(in.FailureMessage)) - out.ASGStatus = (*v1beta2.ASGStatus)(unsafe.Pointer(in.ASGStatus)) - return nil -} - -// Convert_v1beta1_AWSMachinePoolStatus_To_v1beta2_AWSMachinePoolStatus is an autogenerated conversion function. -func Convert_v1beta1_AWSMachinePoolStatus_To_v1beta2_AWSMachinePoolStatus(in *AWSMachinePoolStatus, out *v1beta2.AWSMachinePoolStatus, s conversion.Scope) error { - return autoConvert_v1beta1_AWSMachinePoolStatus_To_v1beta2_AWSMachinePoolStatus(in, out, s) -} - -func autoConvert_v1beta2_AWSMachinePoolStatus_To_v1beta1_AWSMachinePoolStatus(in *v1beta2.AWSMachinePoolStatus, out *AWSMachinePoolStatus, s conversion.Scope) error { - out.Ready = in.Ready - out.Replicas = in.Replicas - out.Conditions = *(*clusterapiapiv1beta1.Conditions)(unsafe.Pointer(&in.Conditions)) - out.Instances = *(*[]AWSMachinePoolInstanceStatus)(unsafe.Pointer(&in.Instances)) - out.LaunchTemplateID = in.LaunchTemplateID - out.LaunchTemplateVersion = (*string)(unsafe.Pointer(in.LaunchTemplateVersion)) - out.FailureReason = (*errors.MachineStatusError)(unsafe.Pointer(in.FailureReason)) - out.FailureMessage = (*string)(unsafe.Pointer(in.FailureMessage)) - out.ASGStatus = (*ASGStatus)(unsafe.Pointer(in.ASGStatus)) - return nil -} - -// Convert_v1beta2_AWSMachinePoolStatus_To_v1beta1_AWSMachinePoolStatus is an autogenerated conversion function. -func Convert_v1beta2_AWSMachinePoolStatus_To_v1beta1_AWSMachinePoolStatus(in *v1beta2.AWSMachinePoolStatus, out *AWSMachinePoolStatus, s conversion.Scope) error { - return autoConvert_v1beta2_AWSMachinePoolStatus_To_v1beta1_AWSMachinePoolStatus(in, out, s) -} - -func autoConvert_v1beta1_AWSManagedMachinePool_To_v1beta2_AWSManagedMachinePool(in *AWSManagedMachinePool, out *v1beta2.AWSManagedMachinePool, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1beta1_AWSManagedMachinePoolSpec_To_v1beta2_AWSManagedMachinePoolSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1beta1_AWSManagedMachinePoolStatus_To_v1beta2_AWSManagedMachinePoolStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_v1beta1_AWSManagedMachinePool_To_v1beta2_AWSManagedMachinePool is an autogenerated conversion function. -func Convert_v1beta1_AWSManagedMachinePool_To_v1beta2_AWSManagedMachinePool(in *AWSManagedMachinePool, out *v1beta2.AWSManagedMachinePool, s conversion.Scope) error { - return autoConvert_v1beta1_AWSManagedMachinePool_To_v1beta2_AWSManagedMachinePool(in, out, s) -} - -func autoConvert_v1beta2_AWSManagedMachinePool_To_v1beta1_AWSManagedMachinePool(in *v1beta2.AWSManagedMachinePool, out *AWSManagedMachinePool, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1beta2_AWSManagedMachinePoolSpec_To_v1beta1_AWSManagedMachinePoolSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1beta2_AWSManagedMachinePoolStatus_To_v1beta1_AWSManagedMachinePoolStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_v1beta2_AWSManagedMachinePool_To_v1beta1_AWSManagedMachinePool is an autogenerated conversion function. -func Convert_v1beta2_AWSManagedMachinePool_To_v1beta1_AWSManagedMachinePool(in *v1beta2.AWSManagedMachinePool, out *AWSManagedMachinePool, s conversion.Scope) error { - return autoConvert_v1beta2_AWSManagedMachinePool_To_v1beta1_AWSManagedMachinePool(in, out, s) -} - -func autoConvert_v1beta1_AWSManagedMachinePoolList_To_v1beta2_AWSManagedMachinePoolList(in *AWSManagedMachinePoolList, out *v1beta2.AWSManagedMachinePoolList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]v1beta2.AWSManagedMachinePool, len(*in)) - for i := range *in { - if err := Convert_v1beta1_AWSManagedMachinePool_To_v1beta2_AWSManagedMachinePool(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -// Convert_v1beta1_AWSManagedMachinePoolList_To_v1beta2_AWSManagedMachinePoolList is an autogenerated conversion function. -func Convert_v1beta1_AWSManagedMachinePoolList_To_v1beta2_AWSManagedMachinePoolList(in *AWSManagedMachinePoolList, out *v1beta2.AWSManagedMachinePoolList, s conversion.Scope) error { - return autoConvert_v1beta1_AWSManagedMachinePoolList_To_v1beta2_AWSManagedMachinePoolList(in, out, s) -} - -func autoConvert_v1beta2_AWSManagedMachinePoolList_To_v1beta1_AWSManagedMachinePoolList(in *v1beta2.AWSManagedMachinePoolList, out *AWSManagedMachinePoolList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]AWSManagedMachinePool, len(*in)) - for i := range *in { - if err := Convert_v1beta2_AWSManagedMachinePool_To_v1beta1_AWSManagedMachinePool(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -// Convert_v1beta2_AWSManagedMachinePoolList_To_v1beta1_AWSManagedMachinePoolList is an autogenerated conversion function. -func Convert_v1beta2_AWSManagedMachinePoolList_To_v1beta1_AWSManagedMachinePoolList(in *v1beta2.AWSManagedMachinePoolList, out *AWSManagedMachinePoolList, s conversion.Scope) error { - return autoConvert_v1beta2_AWSManagedMachinePoolList_To_v1beta1_AWSManagedMachinePoolList(in, out, s) -} - -func autoConvert_v1beta1_AWSManagedMachinePoolSpec_To_v1beta2_AWSManagedMachinePoolSpec(in *AWSManagedMachinePoolSpec, out *v1beta2.AWSManagedMachinePoolSpec, s conversion.Scope) error { - out.EKSNodegroupName = in.EKSNodegroupName - out.AvailabilityZones = *(*[]string)(unsafe.Pointer(&in.AvailabilityZones)) - out.SubnetIDs = *(*[]string)(unsafe.Pointer(&in.SubnetIDs)) - out.AdditionalTags = *(*apiv1beta2.Tags)(unsafe.Pointer(&in.AdditionalTags)) - out.RoleAdditionalPolicies = *(*[]string)(unsafe.Pointer(&in.RoleAdditionalPolicies)) - out.RoleName = in.RoleName - out.AMIVersion = (*string)(unsafe.Pointer(in.AMIVersion)) - out.AMIType = (*v1beta2.ManagedMachineAMIType)(unsafe.Pointer(in.AMIType)) - out.Labels = *(*map[string]string)(unsafe.Pointer(&in.Labels)) - out.Taints = *(*v1beta2.Taints)(unsafe.Pointer(&in.Taints)) - out.DiskSize = (*int32)(unsafe.Pointer(in.DiskSize)) - out.InstanceType = (*string)(unsafe.Pointer(in.InstanceType)) - out.Scaling = (*v1beta2.ManagedMachinePoolScaling)(unsafe.Pointer(in.Scaling)) - out.RemoteAccess = (*v1beta2.ManagedRemoteAccess)(unsafe.Pointer(in.RemoteAccess)) - out.ProviderIDList = *(*[]string)(unsafe.Pointer(&in.ProviderIDList)) - out.CapacityType = (*v1beta2.ManagedMachinePoolCapacityType)(unsafe.Pointer(in.CapacityType)) - out.UpdateConfig = (*v1beta2.UpdateConfig)(unsafe.Pointer(in.UpdateConfig)) - if in.AWSLaunchTemplate != nil { - in, out := &in.AWSLaunchTemplate, &out.AWSLaunchTemplate - *out = new(v1beta2.AWSLaunchTemplate) - if err := Convert_v1beta1_AWSLaunchTemplate_To_v1beta2_AWSLaunchTemplate(*in, *out, s); err != nil { - return err - } - } else { - out.AWSLaunchTemplate = nil - } - return nil -} - -// Convert_v1beta1_AWSManagedMachinePoolSpec_To_v1beta2_AWSManagedMachinePoolSpec is an autogenerated conversion function. -func Convert_v1beta1_AWSManagedMachinePoolSpec_To_v1beta2_AWSManagedMachinePoolSpec(in *AWSManagedMachinePoolSpec, out *v1beta2.AWSManagedMachinePoolSpec, s conversion.Scope) error { - return autoConvert_v1beta1_AWSManagedMachinePoolSpec_To_v1beta2_AWSManagedMachinePoolSpec(in, out, s) -} - -func autoConvert_v1beta2_AWSManagedMachinePoolSpec_To_v1beta1_AWSManagedMachinePoolSpec(in *v1beta2.AWSManagedMachinePoolSpec, out *AWSManagedMachinePoolSpec, s conversion.Scope) error { - out.EKSNodegroupName = in.EKSNodegroupName - out.AvailabilityZones = *(*[]string)(unsafe.Pointer(&in.AvailabilityZones)) - out.SubnetIDs = *(*[]string)(unsafe.Pointer(&in.SubnetIDs)) - out.AdditionalTags = *(*apiv1beta2.Tags)(unsafe.Pointer(&in.AdditionalTags)) - out.RoleAdditionalPolicies = *(*[]string)(unsafe.Pointer(&in.RoleAdditionalPolicies)) - out.RoleName = in.RoleName - out.AMIVersion = (*string)(unsafe.Pointer(in.AMIVersion)) - out.AMIType = (*ManagedMachineAMIType)(unsafe.Pointer(in.AMIType)) - out.Labels = *(*map[string]string)(unsafe.Pointer(&in.Labels)) - out.Taints = *(*Taints)(unsafe.Pointer(&in.Taints)) - out.DiskSize = (*int32)(unsafe.Pointer(in.DiskSize)) - out.InstanceType = (*string)(unsafe.Pointer(in.InstanceType)) - out.Scaling = (*ManagedMachinePoolScaling)(unsafe.Pointer(in.Scaling)) - out.RemoteAccess = (*ManagedRemoteAccess)(unsafe.Pointer(in.RemoteAccess)) - out.ProviderIDList = *(*[]string)(unsafe.Pointer(&in.ProviderIDList)) - out.CapacityType = (*ManagedMachinePoolCapacityType)(unsafe.Pointer(in.CapacityType)) - out.UpdateConfig = (*UpdateConfig)(unsafe.Pointer(in.UpdateConfig)) - if in.AWSLaunchTemplate != nil { - in, out := &in.AWSLaunchTemplate, &out.AWSLaunchTemplate - *out = new(AWSLaunchTemplate) - if err := Convert_v1beta2_AWSLaunchTemplate_To_v1beta1_AWSLaunchTemplate(*in, *out, s); err != nil { - return err - } - } else { - out.AWSLaunchTemplate = nil - } - return nil -} - -func autoConvert_v1beta1_AWSManagedMachinePoolStatus_To_v1beta2_AWSManagedMachinePoolStatus(in *AWSManagedMachinePoolStatus, out *v1beta2.AWSManagedMachinePoolStatus, s conversion.Scope) error { - out.Ready = in.Ready - out.Replicas = in.Replicas - out.LaunchTemplateID = (*string)(unsafe.Pointer(in.LaunchTemplateID)) - out.LaunchTemplateVersion = (*string)(unsafe.Pointer(in.LaunchTemplateVersion)) - out.FailureReason = (*errors.MachineStatusError)(unsafe.Pointer(in.FailureReason)) - out.FailureMessage = (*string)(unsafe.Pointer(in.FailureMessage)) - out.Conditions = *(*clusterapiapiv1beta1.Conditions)(unsafe.Pointer(&in.Conditions)) - return nil -} - -// Convert_v1beta1_AWSManagedMachinePoolStatus_To_v1beta2_AWSManagedMachinePoolStatus is an autogenerated conversion function. -func Convert_v1beta1_AWSManagedMachinePoolStatus_To_v1beta2_AWSManagedMachinePoolStatus(in *AWSManagedMachinePoolStatus, out *v1beta2.AWSManagedMachinePoolStatus, s conversion.Scope) error { - return autoConvert_v1beta1_AWSManagedMachinePoolStatus_To_v1beta2_AWSManagedMachinePoolStatus(in, out, s) -} - -func autoConvert_v1beta2_AWSManagedMachinePoolStatus_To_v1beta1_AWSManagedMachinePoolStatus(in *v1beta2.AWSManagedMachinePoolStatus, out *AWSManagedMachinePoolStatus, s conversion.Scope) error { - out.Ready = in.Ready - out.Replicas = in.Replicas - out.LaunchTemplateID = (*string)(unsafe.Pointer(in.LaunchTemplateID)) - out.LaunchTemplateVersion = (*string)(unsafe.Pointer(in.LaunchTemplateVersion)) - out.FailureReason = (*errors.MachineStatusError)(unsafe.Pointer(in.FailureReason)) - out.FailureMessage = (*string)(unsafe.Pointer(in.FailureMessage)) - out.Conditions = *(*clusterapiapiv1beta1.Conditions)(unsafe.Pointer(&in.Conditions)) - return nil -} - -// Convert_v1beta2_AWSManagedMachinePoolStatus_To_v1beta1_AWSManagedMachinePoolStatus is an autogenerated conversion function. -func Convert_v1beta2_AWSManagedMachinePoolStatus_To_v1beta1_AWSManagedMachinePoolStatus(in *v1beta2.AWSManagedMachinePoolStatus, out *AWSManagedMachinePoolStatus, s conversion.Scope) error { - return autoConvert_v1beta2_AWSManagedMachinePoolStatus_To_v1beta1_AWSManagedMachinePoolStatus(in, out, s) -} - -func autoConvert_v1beta1_AutoScalingGroup_To_v1beta2_AutoScalingGroup(in *AutoScalingGroup, out *v1beta2.AutoScalingGroup, s conversion.Scope) error { - out.ID = in.ID - out.Tags = *(*apiv1beta2.Tags)(unsafe.Pointer(&in.Tags)) - out.Name = in.Name - out.DesiredCapacity = (*int32)(unsafe.Pointer(in.DesiredCapacity)) - out.MaxSize = in.MaxSize - out.MinSize = in.MinSize - out.PlacementGroup = in.PlacementGroup - out.Subnets = *(*[]string)(unsafe.Pointer(&in.Subnets)) - out.DefaultCoolDown = in.DefaultCoolDown - out.CapacityRebalance = in.CapacityRebalance - out.MixedInstancesPolicy = (*v1beta2.MixedInstancesPolicy)(unsafe.Pointer(in.MixedInstancesPolicy)) - out.Status = v1beta2.ASGStatus(in.Status) - out.Instances = *(*[]apiv1beta2.Instance)(unsafe.Pointer(&in.Instances)) - return nil -} - -func autoConvert_v1beta2_AutoScalingGroup_To_v1beta1_AutoScalingGroup(in *v1beta2.AutoScalingGroup, out *AutoScalingGroup, s conversion.Scope) error { - out.ID = in.ID - out.Tags = *(*apiv1beta2.Tags)(unsafe.Pointer(&in.Tags)) - out.Name = in.Name - out.DesiredCapacity = (*int32)(unsafe.Pointer(in.DesiredCapacity)) - out.MaxSize = in.MaxSize - out.MinSize = in.MinSize - out.PlacementGroup = in.PlacementGroup - out.Subnets = *(*[]string)(unsafe.Pointer(&in.Subnets)) - out.DefaultCoolDown = in.DefaultCoolDown - out.CapacityRebalance = in.CapacityRebalance - out.MixedInstancesPolicy = (*MixedInstancesPolicy)(unsafe.Pointer(in.MixedInstancesPolicy)) - out.Status = ASGStatus(in.Status) - out.Instances = *(*[]apiv1beta2.Instance)(unsafe.Pointer(&in.Instances)) - // WARNING: in.CurrentlySuspendProcesses requires manual conversion: does not exist in peer-type - return nil -} - -func autoConvert_v1beta1_BlockDeviceMapping_To_v1beta2_BlockDeviceMapping(in *BlockDeviceMapping, out *v1beta2.BlockDeviceMapping, s conversion.Scope) error { - out.DeviceName = in.DeviceName - if err := Convert_v1beta1_EBS_To_v1beta2_EBS(&in.Ebs, &out.Ebs, s); err != nil { - return err - } - return nil -} - -// Convert_v1beta1_BlockDeviceMapping_To_v1beta2_BlockDeviceMapping is an autogenerated conversion function. -func Convert_v1beta1_BlockDeviceMapping_To_v1beta2_BlockDeviceMapping(in *BlockDeviceMapping, out *v1beta2.BlockDeviceMapping, s conversion.Scope) error { - return autoConvert_v1beta1_BlockDeviceMapping_To_v1beta2_BlockDeviceMapping(in, out, s) -} - -func autoConvert_v1beta2_BlockDeviceMapping_To_v1beta1_BlockDeviceMapping(in *v1beta2.BlockDeviceMapping, out *BlockDeviceMapping, s conversion.Scope) error { - out.DeviceName = in.DeviceName - if err := Convert_v1beta2_EBS_To_v1beta1_EBS(&in.Ebs, &out.Ebs, s); err != nil { - return err - } - return nil -} - -// Convert_v1beta2_BlockDeviceMapping_To_v1beta1_BlockDeviceMapping is an autogenerated conversion function. -func Convert_v1beta2_BlockDeviceMapping_To_v1beta1_BlockDeviceMapping(in *v1beta2.BlockDeviceMapping, out *BlockDeviceMapping, s conversion.Scope) error { - return autoConvert_v1beta2_BlockDeviceMapping_To_v1beta1_BlockDeviceMapping(in, out, s) -} - -func autoConvert_v1beta1_EBS_To_v1beta2_EBS(in *EBS, out *v1beta2.EBS, s conversion.Scope) error { - out.Encrypted = in.Encrypted - out.VolumeSize = in.VolumeSize - out.VolumeType = in.VolumeType - return nil -} - -// Convert_v1beta1_EBS_To_v1beta2_EBS is an autogenerated conversion function. -func Convert_v1beta1_EBS_To_v1beta2_EBS(in *EBS, out *v1beta2.EBS, s conversion.Scope) error { - return autoConvert_v1beta1_EBS_To_v1beta2_EBS(in, out, s) -} - -func autoConvert_v1beta2_EBS_To_v1beta1_EBS(in *v1beta2.EBS, out *EBS, s conversion.Scope) error { - out.Encrypted = in.Encrypted - out.VolumeSize = in.VolumeSize - out.VolumeType = in.VolumeType - return nil -} - -// Convert_v1beta2_EBS_To_v1beta1_EBS is an autogenerated conversion function. -func Convert_v1beta2_EBS_To_v1beta1_EBS(in *v1beta2.EBS, out *EBS, s conversion.Scope) error { - return autoConvert_v1beta2_EBS_To_v1beta1_EBS(in, out, s) -} - -func autoConvert_v1beta1_FargateProfileSpec_To_v1beta2_FargateProfileSpec(in *FargateProfileSpec, out *v1beta2.FargateProfileSpec, s conversion.Scope) error { - out.ClusterName = in.ClusterName - out.ProfileName = in.ProfileName - out.SubnetIDs = *(*[]string)(unsafe.Pointer(&in.SubnetIDs)) - out.AdditionalTags = *(*apiv1beta2.Tags)(unsafe.Pointer(&in.AdditionalTags)) - out.RoleName = in.RoleName - out.Selectors = *(*[]v1beta2.FargateSelector)(unsafe.Pointer(&in.Selectors)) - return nil -} - -// Convert_v1beta1_FargateProfileSpec_To_v1beta2_FargateProfileSpec is an autogenerated conversion function. -func Convert_v1beta1_FargateProfileSpec_To_v1beta2_FargateProfileSpec(in *FargateProfileSpec, out *v1beta2.FargateProfileSpec, s conversion.Scope) error { - return autoConvert_v1beta1_FargateProfileSpec_To_v1beta2_FargateProfileSpec(in, out, s) -} - -func autoConvert_v1beta2_FargateProfileSpec_To_v1beta1_FargateProfileSpec(in *v1beta2.FargateProfileSpec, out *FargateProfileSpec, s conversion.Scope) error { - out.ClusterName = in.ClusterName - out.ProfileName = in.ProfileName - out.SubnetIDs = *(*[]string)(unsafe.Pointer(&in.SubnetIDs)) - out.AdditionalTags = *(*apiv1beta2.Tags)(unsafe.Pointer(&in.AdditionalTags)) - out.RoleName = in.RoleName - out.Selectors = *(*[]FargateSelector)(unsafe.Pointer(&in.Selectors)) - return nil -} - -// Convert_v1beta2_FargateProfileSpec_To_v1beta1_FargateProfileSpec is an autogenerated conversion function. -func Convert_v1beta2_FargateProfileSpec_To_v1beta1_FargateProfileSpec(in *v1beta2.FargateProfileSpec, out *FargateProfileSpec, s conversion.Scope) error { - return autoConvert_v1beta2_FargateProfileSpec_To_v1beta1_FargateProfileSpec(in, out, s) -} - -func autoConvert_v1beta1_FargateProfileStatus_To_v1beta2_FargateProfileStatus(in *FargateProfileStatus, out *v1beta2.FargateProfileStatus, s conversion.Scope) error { - out.Ready = in.Ready - out.FailureReason = (*errors.MachineStatusError)(unsafe.Pointer(in.FailureReason)) - out.FailureMessage = (*string)(unsafe.Pointer(in.FailureMessage)) - out.Conditions = *(*clusterapiapiv1beta1.Conditions)(unsafe.Pointer(&in.Conditions)) - return nil -} - -// Convert_v1beta1_FargateProfileStatus_To_v1beta2_FargateProfileStatus is an autogenerated conversion function. -func Convert_v1beta1_FargateProfileStatus_To_v1beta2_FargateProfileStatus(in *FargateProfileStatus, out *v1beta2.FargateProfileStatus, s conversion.Scope) error { - return autoConvert_v1beta1_FargateProfileStatus_To_v1beta2_FargateProfileStatus(in, out, s) -} - -func autoConvert_v1beta2_FargateProfileStatus_To_v1beta1_FargateProfileStatus(in *v1beta2.FargateProfileStatus, out *FargateProfileStatus, s conversion.Scope) error { - out.Ready = in.Ready - out.FailureReason = (*errors.MachineStatusError)(unsafe.Pointer(in.FailureReason)) - out.FailureMessage = (*string)(unsafe.Pointer(in.FailureMessage)) - out.Conditions = *(*clusterapiapiv1beta1.Conditions)(unsafe.Pointer(&in.Conditions)) - return nil -} - -// Convert_v1beta2_FargateProfileStatus_To_v1beta1_FargateProfileStatus is an autogenerated conversion function. -func Convert_v1beta2_FargateProfileStatus_To_v1beta1_FargateProfileStatus(in *v1beta2.FargateProfileStatus, out *FargateProfileStatus, s conversion.Scope) error { - return autoConvert_v1beta2_FargateProfileStatus_To_v1beta1_FargateProfileStatus(in, out, s) -} - -func autoConvert_v1beta1_FargateSelector_To_v1beta2_FargateSelector(in *FargateSelector, out *v1beta2.FargateSelector, s conversion.Scope) error { - out.Labels = *(*map[string]string)(unsafe.Pointer(&in.Labels)) - out.Namespace = in.Namespace - return nil -} - -// Convert_v1beta1_FargateSelector_To_v1beta2_FargateSelector is an autogenerated conversion function. -func Convert_v1beta1_FargateSelector_To_v1beta2_FargateSelector(in *FargateSelector, out *v1beta2.FargateSelector, s conversion.Scope) error { - return autoConvert_v1beta1_FargateSelector_To_v1beta2_FargateSelector(in, out, s) -} - -func autoConvert_v1beta2_FargateSelector_To_v1beta1_FargateSelector(in *v1beta2.FargateSelector, out *FargateSelector, s conversion.Scope) error { - out.Labels = *(*map[string]string)(unsafe.Pointer(&in.Labels)) - out.Namespace = in.Namespace - return nil -} - -// Convert_v1beta2_FargateSelector_To_v1beta1_FargateSelector is an autogenerated conversion function. -func Convert_v1beta2_FargateSelector_To_v1beta1_FargateSelector(in *v1beta2.FargateSelector, out *FargateSelector, s conversion.Scope) error { - return autoConvert_v1beta2_FargateSelector_To_v1beta1_FargateSelector(in, out, s) -} - -func autoConvert_v1beta1_InstancesDistribution_To_v1beta2_InstancesDistribution(in *InstancesDistribution, out *v1beta2.InstancesDistribution, s conversion.Scope) error { - out.OnDemandAllocationStrategy = v1beta2.OnDemandAllocationStrategy(in.OnDemandAllocationStrategy) - out.SpotAllocationStrategy = v1beta2.SpotAllocationStrategy(in.SpotAllocationStrategy) - out.OnDemandBaseCapacity = (*int64)(unsafe.Pointer(in.OnDemandBaseCapacity)) - out.OnDemandPercentageAboveBaseCapacity = (*int64)(unsafe.Pointer(in.OnDemandPercentageAboveBaseCapacity)) - return nil -} - -// Convert_v1beta1_InstancesDistribution_To_v1beta2_InstancesDistribution is an autogenerated conversion function. -func Convert_v1beta1_InstancesDistribution_To_v1beta2_InstancesDistribution(in *InstancesDistribution, out *v1beta2.InstancesDistribution, s conversion.Scope) error { - return autoConvert_v1beta1_InstancesDistribution_To_v1beta2_InstancesDistribution(in, out, s) -} - -func autoConvert_v1beta2_InstancesDistribution_To_v1beta1_InstancesDistribution(in *v1beta2.InstancesDistribution, out *InstancesDistribution, s conversion.Scope) error { - out.OnDemandAllocationStrategy = OnDemandAllocationStrategy(in.OnDemandAllocationStrategy) - out.SpotAllocationStrategy = SpotAllocationStrategy(in.SpotAllocationStrategy) - out.OnDemandBaseCapacity = (*int64)(unsafe.Pointer(in.OnDemandBaseCapacity)) - out.OnDemandPercentageAboveBaseCapacity = (*int64)(unsafe.Pointer(in.OnDemandPercentageAboveBaseCapacity)) - return nil -} - -// Convert_v1beta2_InstancesDistribution_To_v1beta1_InstancesDistribution is an autogenerated conversion function. -func Convert_v1beta2_InstancesDistribution_To_v1beta1_InstancesDistribution(in *v1beta2.InstancesDistribution, out *InstancesDistribution, s conversion.Scope) error { - return autoConvert_v1beta2_InstancesDistribution_To_v1beta1_InstancesDistribution(in, out, s) -} - -func autoConvert_v1beta1_ManagedMachinePoolScaling_To_v1beta2_ManagedMachinePoolScaling(in *ManagedMachinePoolScaling, out *v1beta2.ManagedMachinePoolScaling, s conversion.Scope) error { - out.MinSize = (*int32)(unsafe.Pointer(in.MinSize)) - out.MaxSize = (*int32)(unsafe.Pointer(in.MaxSize)) - return nil -} - -// Convert_v1beta1_ManagedMachinePoolScaling_To_v1beta2_ManagedMachinePoolScaling is an autogenerated conversion function. -func Convert_v1beta1_ManagedMachinePoolScaling_To_v1beta2_ManagedMachinePoolScaling(in *ManagedMachinePoolScaling, out *v1beta2.ManagedMachinePoolScaling, s conversion.Scope) error { - return autoConvert_v1beta1_ManagedMachinePoolScaling_To_v1beta2_ManagedMachinePoolScaling(in, out, s) -} - -func autoConvert_v1beta2_ManagedMachinePoolScaling_To_v1beta1_ManagedMachinePoolScaling(in *v1beta2.ManagedMachinePoolScaling, out *ManagedMachinePoolScaling, s conversion.Scope) error { - out.MinSize = (*int32)(unsafe.Pointer(in.MinSize)) - out.MaxSize = (*int32)(unsafe.Pointer(in.MaxSize)) - return nil -} - -// Convert_v1beta2_ManagedMachinePoolScaling_To_v1beta1_ManagedMachinePoolScaling is an autogenerated conversion function. -func Convert_v1beta2_ManagedMachinePoolScaling_To_v1beta1_ManagedMachinePoolScaling(in *v1beta2.ManagedMachinePoolScaling, out *ManagedMachinePoolScaling, s conversion.Scope) error { - return autoConvert_v1beta2_ManagedMachinePoolScaling_To_v1beta1_ManagedMachinePoolScaling(in, out, s) -} - -func autoConvert_v1beta1_ManagedRemoteAccess_To_v1beta2_ManagedRemoteAccess(in *ManagedRemoteAccess, out *v1beta2.ManagedRemoteAccess, s conversion.Scope) error { - out.SSHKeyName = (*string)(unsafe.Pointer(in.SSHKeyName)) - out.SourceSecurityGroups = *(*[]string)(unsafe.Pointer(&in.SourceSecurityGroups)) - out.Public = in.Public - return nil -} - -// Convert_v1beta1_ManagedRemoteAccess_To_v1beta2_ManagedRemoteAccess is an autogenerated conversion function. -func Convert_v1beta1_ManagedRemoteAccess_To_v1beta2_ManagedRemoteAccess(in *ManagedRemoteAccess, out *v1beta2.ManagedRemoteAccess, s conversion.Scope) error { - return autoConvert_v1beta1_ManagedRemoteAccess_To_v1beta2_ManagedRemoteAccess(in, out, s) -} - -func autoConvert_v1beta2_ManagedRemoteAccess_To_v1beta1_ManagedRemoteAccess(in *v1beta2.ManagedRemoteAccess, out *ManagedRemoteAccess, s conversion.Scope) error { - out.SSHKeyName = (*string)(unsafe.Pointer(in.SSHKeyName)) - out.SourceSecurityGroups = *(*[]string)(unsafe.Pointer(&in.SourceSecurityGroups)) - out.Public = in.Public - return nil -} - -// Convert_v1beta2_ManagedRemoteAccess_To_v1beta1_ManagedRemoteAccess is an autogenerated conversion function. -func Convert_v1beta2_ManagedRemoteAccess_To_v1beta1_ManagedRemoteAccess(in *v1beta2.ManagedRemoteAccess, out *ManagedRemoteAccess, s conversion.Scope) error { - return autoConvert_v1beta2_ManagedRemoteAccess_To_v1beta1_ManagedRemoteAccess(in, out, s) -} - -func autoConvert_v1beta1_MixedInstancesPolicy_To_v1beta2_MixedInstancesPolicy(in *MixedInstancesPolicy, out *v1beta2.MixedInstancesPolicy, s conversion.Scope) error { - out.InstancesDistribution = (*v1beta2.InstancesDistribution)(unsafe.Pointer(in.InstancesDistribution)) - out.Overrides = *(*[]v1beta2.Overrides)(unsafe.Pointer(&in.Overrides)) - return nil -} - -// Convert_v1beta1_MixedInstancesPolicy_To_v1beta2_MixedInstancesPolicy is an autogenerated conversion function. -func Convert_v1beta1_MixedInstancesPolicy_To_v1beta2_MixedInstancesPolicy(in *MixedInstancesPolicy, out *v1beta2.MixedInstancesPolicy, s conversion.Scope) error { - return autoConvert_v1beta1_MixedInstancesPolicy_To_v1beta2_MixedInstancesPolicy(in, out, s) -} - -func autoConvert_v1beta2_MixedInstancesPolicy_To_v1beta1_MixedInstancesPolicy(in *v1beta2.MixedInstancesPolicy, out *MixedInstancesPolicy, s conversion.Scope) error { - out.InstancesDistribution = (*InstancesDistribution)(unsafe.Pointer(in.InstancesDistribution)) - out.Overrides = *(*[]Overrides)(unsafe.Pointer(&in.Overrides)) - return nil -} - -// Convert_v1beta2_MixedInstancesPolicy_To_v1beta1_MixedInstancesPolicy is an autogenerated conversion function. -func Convert_v1beta2_MixedInstancesPolicy_To_v1beta1_MixedInstancesPolicy(in *v1beta2.MixedInstancesPolicy, out *MixedInstancesPolicy, s conversion.Scope) error { - return autoConvert_v1beta2_MixedInstancesPolicy_To_v1beta1_MixedInstancesPolicy(in, out, s) -} - -func autoConvert_v1beta1_Overrides_To_v1beta2_Overrides(in *Overrides, out *v1beta2.Overrides, s conversion.Scope) error { - out.InstanceType = in.InstanceType - return nil -} - -// Convert_v1beta1_Overrides_To_v1beta2_Overrides is an autogenerated conversion function. -func Convert_v1beta1_Overrides_To_v1beta2_Overrides(in *Overrides, out *v1beta2.Overrides, s conversion.Scope) error { - return autoConvert_v1beta1_Overrides_To_v1beta2_Overrides(in, out, s) -} - -func autoConvert_v1beta2_Overrides_To_v1beta1_Overrides(in *v1beta2.Overrides, out *Overrides, s conversion.Scope) error { - out.InstanceType = in.InstanceType - return nil -} - -// Convert_v1beta2_Overrides_To_v1beta1_Overrides is an autogenerated conversion function. -func Convert_v1beta2_Overrides_To_v1beta1_Overrides(in *v1beta2.Overrides, out *Overrides, s conversion.Scope) error { - return autoConvert_v1beta2_Overrides_To_v1beta1_Overrides(in, out, s) -} - -func autoConvert_v1beta1_RefreshPreferences_To_v1beta2_RefreshPreferences(in *RefreshPreferences, out *v1beta2.RefreshPreferences, s conversion.Scope) error { - out.Strategy = (*string)(unsafe.Pointer(in.Strategy)) - out.InstanceWarmup = (*int64)(unsafe.Pointer(in.InstanceWarmup)) - out.MinHealthyPercentage = (*int64)(unsafe.Pointer(in.MinHealthyPercentage)) - return nil -} - -// Convert_v1beta1_RefreshPreferences_To_v1beta2_RefreshPreferences is an autogenerated conversion function. -func Convert_v1beta1_RefreshPreferences_To_v1beta2_RefreshPreferences(in *RefreshPreferences, out *v1beta2.RefreshPreferences, s conversion.Scope) error { - return autoConvert_v1beta1_RefreshPreferences_To_v1beta2_RefreshPreferences(in, out, s) -} - -func autoConvert_v1beta2_RefreshPreferences_To_v1beta1_RefreshPreferences(in *v1beta2.RefreshPreferences, out *RefreshPreferences, s conversion.Scope) error { - // WARNING: in.Disable requires manual conversion: does not exist in peer-type - out.Strategy = (*string)(unsafe.Pointer(in.Strategy)) - out.InstanceWarmup = (*int64)(unsafe.Pointer(in.InstanceWarmup)) - out.MinHealthyPercentage = (*int64)(unsafe.Pointer(in.MinHealthyPercentage)) - return nil -} - -func autoConvert_v1beta1_Taint_To_v1beta2_Taint(in *Taint, out *v1beta2.Taint, s conversion.Scope) error { - out.Effect = v1beta2.TaintEffect(in.Effect) - out.Key = in.Key - out.Value = in.Value - return nil -} - -// Convert_v1beta1_Taint_To_v1beta2_Taint is an autogenerated conversion function. -func Convert_v1beta1_Taint_To_v1beta2_Taint(in *Taint, out *v1beta2.Taint, s conversion.Scope) error { - return autoConvert_v1beta1_Taint_To_v1beta2_Taint(in, out, s) -} - -func autoConvert_v1beta2_Taint_To_v1beta1_Taint(in *v1beta2.Taint, out *Taint, s conversion.Scope) error { - out.Effect = TaintEffect(in.Effect) - out.Key = in.Key - out.Value = in.Value - return nil -} - -// Convert_v1beta2_Taint_To_v1beta1_Taint is an autogenerated conversion function. -func Convert_v1beta2_Taint_To_v1beta1_Taint(in *v1beta2.Taint, out *Taint, s conversion.Scope) error { - return autoConvert_v1beta2_Taint_To_v1beta1_Taint(in, out, s) -} - -func autoConvert_v1beta1_UpdateConfig_To_v1beta2_UpdateConfig(in *UpdateConfig, out *v1beta2.UpdateConfig, s conversion.Scope) error { - out.MaxUnavailable = (*int)(unsafe.Pointer(in.MaxUnavailable)) - out.MaxUnavailablePercentage = (*int)(unsafe.Pointer(in.MaxUnavailablePercentage)) - return nil -} - -// Convert_v1beta1_UpdateConfig_To_v1beta2_UpdateConfig is an autogenerated conversion function. -func Convert_v1beta1_UpdateConfig_To_v1beta2_UpdateConfig(in *UpdateConfig, out *v1beta2.UpdateConfig, s conversion.Scope) error { - return autoConvert_v1beta1_UpdateConfig_To_v1beta2_UpdateConfig(in, out, s) -} - -func autoConvert_v1beta2_UpdateConfig_To_v1beta1_UpdateConfig(in *v1beta2.UpdateConfig, out *UpdateConfig, s conversion.Scope) error { - out.MaxUnavailable = (*int)(unsafe.Pointer(in.MaxUnavailable)) - out.MaxUnavailablePercentage = (*int)(unsafe.Pointer(in.MaxUnavailablePercentage)) - return nil -} - -// Convert_v1beta2_UpdateConfig_To_v1beta1_UpdateConfig is an autogenerated conversion function. -func Convert_v1beta2_UpdateConfig_To_v1beta1_UpdateConfig(in *v1beta2.UpdateConfig, out *UpdateConfig, s conversion.Scope) error { - return autoConvert_v1beta2_UpdateConfig_To_v1beta1_UpdateConfig(in, out, s) -} diff --git a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/zz_generated.deepcopy.go b/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index cbbedde6..00000000 --- a/vendor/sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,899 +0,0 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - -/* -Copyright The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by controller-gen. DO NOT EDIT. - -package v1beta1 - -import ( - "k8s.io/apimachinery/pkg/runtime" - "sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta2" - apiv1beta1 "sigs.k8s.io/cluster-api/api/v1beta1" - "sigs.k8s.io/cluster-api/errors" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSFargateProfile) DeepCopyInto(out *AWSFargateProfile) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSFargateProfile. -func (in *AWSFargateProfile) DeepCopy() *AWSFargateProfile { - if in == nil { - return nil - } - out := new(AWSFargateProfile) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AWSFargateProfile) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSFargateProfileList) DeepCopyInto(out *AWSFargateProfileList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]AWSFargateProfile, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSFargateProfileList. -func (in *AWSFargateProfileList) DeepCopy() *AWSFargateProfileList { - if in == nil { - return nil - } - out := new(AWSFargateProfileList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AWSFargateProfileList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSLaunchTemplate) DeepCopyInto(out *AWSLaunchTemplate) { - *out = *in - in.AMI.DeepCopyInto(&out.AMI) - if in.RootVolume != nil { - in, out := &in.RootVolume, &out.RootVolume - *out = new(v1beta2.Volume) - (*in).DeepCopyInto(*out) - } - if in.SSHKeyName != nil { - in, out := &in.SSHKeyName, &out.SSHKeyName - *out = new(string) - **out = **in - } - if in.VersionNumber != nil { - in, out := &in.VersionNumber, &out.VersionNumber - *out = new(int64) - **out = **in - } - if in.AdditionalSecurityGroups != nil { - in, out := &in.AdditionalSecurityGroups, &out.AdditionalSecurityGroups - *out = make([]v1beta2.AWSResourceReference, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.SpotMarketOptions != nil { - in, out := &in.SpotMarketOptions, &out.SpotMarketOptions - *out = new(v1beta2.SpotMarketOptions) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSLaunchTemplate. -func (in *AWSLaunchTemplate) DeepCopy() *AWSLaunchTemplate { - if in == nil { - return nil - } - out := new(AWSLaunchTemplate) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSMachinePool) DeepCopyInto(out *AWSMachinePool) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSMachinePool. -func (in *AWSMachinePool) DeepCopy() *AWSMachinePool { - if in == nil { - return nil - } - out := new(AWSMachinePool) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AWSMachinePool) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSMachinePoolInstanceStatus) DeepCopyInto(out *AWSMachinePoolInstanceStatus) { - *out = *in - if in.Version != nil { - in, out := &in.Version, &out.Version - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSMachinePoolInstanceStatus. -func (in *AWSMachinePoolInstanceStatus) DeepCopy() *AWSMachinePoolInstanceStatus { - if in == nil { - return nil - } - out := new(AWSMachinePoolInstanceStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSMachinePoolList) DeepCopyInto(out *AWSMachinePoolList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]AWSMachinePool, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSMachinePoolList. -func (in *AWSMachinePoolList) DeepCopy() *AWSMachinePoolList { - if in == nil { - return nil - } - out := new(AWSMachinePoolList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AWSMachinePoolList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSMachinePoolSpec) DeepCopyInto(out *AWSMachinePoolSpec) { - *out = *in - if in.AvailabilityZones != nil { - in, out := &in.AvailabilityZones, &out.AvailabilityZones - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Subnets != nil { - in, out := &in.Subnets, &out.Subnets - *out = make([]v1beta2.AWSResourceReference, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.AdditionalTags != nil { - in, out := &in.AdditionalTags, &out.AdditionalTags - *out = make(v1beta2.Tags, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - in.AWSLaunchTemplate.DeepCopyInto(&out.AWSLaunchTemplate) - if in.MixedInstancesPolicy != nil { - in, out := &in.MixedInstancesPolicy, &out.MixedInstancesPolicy - *out = new(MixedInstancesPolicy) - (*in).DeepCopyInto(*out) - } - if in.ProviderIDList != nil { - in, out := &in.ProviderIDList, &out.ProviderIDList - *out = make([]string, len(*in)) - copy(*out, *in) - } - out.DefaultCoolDown = in.DefaultCoolDown - if in.RefreshPreferences != nil { - in, out := &in.RefreshPreferences, &out.RefreshPreferences - *out = new(RefreshPreferences) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSMachinePoolSpec. -func (in *AWSMachinePoolSpec) DeepCopy() *AWSMachinePoolSpec { - if in == nil { - return nil - } - out := new(AWSMachinePoolSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSMachinePoolStatus) DeepCopyInto(out *AWSMachinePoolStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make(apiv1beta1.Conditions, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Instances != nil { - in, out := &in.Instances, &out.Instances - *out = make([]AWSMachinePoolInstanceStatus, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.LaunchTemplateVersion != nil { - in, out := &in.LaunchTemplateVersion, &out.LaunchTemplateVersion - *out = new(string) - **out = **in - } - if in.FailureReason != nil { - in, out := &in.FailureReason, &out.FailureReason - *out = new(errors.MachineStatusError) - **out = **in - } - if in.FailureMessage != nil { - in, out := &in.FailureMessage, &out.FailureMessage - *out = new(string) - **out = **in - } - if in.ASGStatus != nil { - in, out := &in.ASGStatus, &out.ASGStatus - *out = new(ASGStatus) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSMachinePoolStatus. -func (in *AWSMachinePoolStatus) DeepCopy() *AWSMachinePoolStatus { - if in == nil { - return nil - } - out := new(AWSMachinePoolStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSManagedMachinePool) DeepCopyInto(out *AWSManagedMachinePool) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSManagedMachinePool. -func (in *AWSManagedMachinePool) DeepCopy() *AWSManagedMachinePool { - if in == nil { - return nil - } - out := new(AWSManagedMachinePool) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AWSManagedMachinePool) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSManagedMachinePoolList) DeepCopyInto(out *AWSManagedMachinePoolList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]AWSManagedMachinePool, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSManagedMachinePoolList. -func (in *AWSManagedMachinePoolList) DeepCopy() *AWSManagedMachinePoolList { - if in == nil { - return nil - } - out := new(AWSManagedMachinePoolList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AWSManagedMachinePoolList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSManagedMachinePoolSpec) DeepCopyInto(out *AWSManagedMachinePoolSpec) { - *out = *in - if in.AvailabilityZones != nil { - in, out := &in.AvailabilityZones, &out.AvailabilityZones - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.SubnetIDs != nil { - in, out := &in.SubnetIDs, &out.SubnetIDs - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.AdditionalTags != nil { - in, out := &in.AdditionalTags, &out.AdditionalTags - *out = make(v1beta2.Tags, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.RoleAdditionalPolicies != nil { - in, out := &in.RoleAdditionalPolicies, &out.RoleAdditionalPolicies - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.AMIVersion != nil { - in, out := &in.AMIVersion, &out.AMIVersion - *out = new(string) - **out = **in - } - if in.AMIType != nil { - in, out := &in.AMIType, &out.AMIType - *out = new(ManagedMachineAMIType) - **out = **in - } - if in.Labels != nil { - in, out := &in.Labels, &out.Labels - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.Taints != nil { - in, out := &in.Taints, &out.Taints - *out = make(Taints, len(*in)) - copy(*out, *in) - } - if in.DiskSize != nil { - in, out := &in.DiskSize, &out.DiskSize - *out = new(int32) - **out = **in - } - if in.InstanceType != nil { - in, out := &in.InstanceType, &out.InstanceType - *out = new(string) - **out = **in - } - if in.Scaling != nil { - in, out := &in.Scaling, &out.Scaling - *out = new(ManagedMachinePoolScaling) - (*in).DeepCopyInto(*out) - } - if in.RemoteAccess != nil { - in, out := &in.RemoteAccess, &out.RemoteAccess - *out = new(ManagedRemoteAccess) - (*in).DeepCopyInto(*out) - } - if in.ProviderIDList != nil { - in, out := &in.ProviderIDList, &out.ProviderIDList - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.CapacityType != nil { - in, out := &in.CapacityType, &out.CapacityType - *out = new(ManagedMachinePoolCapacityType) - **out = **in - } - if in.UpdateConfig != nil { - in, out := &in.UpdateConfig, &out.UpdateConfig - *out = new(UpdateConfig) - (*in).DeepCopyInto(*out) - } - if in.AWSLaunchTemplate != nil { - in, out := &in.AWSLaunchTemplate, &out.AWSLaunchTemplate - *out = new(AWSLaunchTemplate) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSManagedMachinePoolSpec. -func (in *AWSManagedMachinePoolSpec) DeepCopy() *AWSManagedMachinePoolSpec { - if in == nil { - return nil - } - out := new(AWSManagedMachinePoolSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSManagedMachinePoolStatus) DeepCopyInto(out *AWSManagedMachinePoolStatus) { - *out = *in - if in.LaunchTemplateID != nil { - in, out := &in.LaunchTemplateID, &out.LaunchTemplateID - *out = new(string) - **out = **in - } - if in.LaunchTemplateVersion != nil { - in, out := &in.LaunchTemplateVersion, &out.LaunchTemplateVersion - *out = new(string) - **out = **in - } - if in.FailureReason != nil { - in, out := &in.FailureReason, &out.FailureReason - *out = new(errors.MachineStatusError) - **out = **in - } - if in.FailureMessage != nil { - in, out := &in.FailureMessage, &out.FailureMessage - *out = new(string) - **out = **in - } - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make(apiv1beta1.Conditions, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSManagedMachinePoolStatus. -func (in *AWSManagedMachinePoolStatus) DeepCopy() *AWSManagedMachinePoolStatus { - if in == nil { - return nil - } - out := new(AWSManagedMachinePoolStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AutoScalingGroup) DeepCopyInto(out *AutoScalingGroup) { - *out = *in - if in.Tags != nil { - in, out := &in.Tags, &out.Tags - *out = make(v1beta2.Tags, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.DesiredCapacity != nil { - in, out := &in.DesiredCapacity, &out.DesiredCapacity - *out = new(int32) - **out = **in - } - if in.Subnets != nil { - in, out := &in.Subnets, &out.Subnets - *out = make([]string, len(*in)) - copy(*out, *in) - } - out.DefaultCoolDown = in.DefaultCoolDown - if in.MixedInstancesPolicy != nil { - in, out := &in.MixedInstancesPolicy, &out.MixedInstancesPolicy - *out = new(MixedInstancesPolicy) - (*in).DeepCopyInto(*out) - } - if in.Instances != nil { - in, out := &in.Instances, &out.Instances - *out = make([]v1beta2.Instance, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoScalingGroup. -func (in *AutoScalingGroup) DeepCopy() *AutoScalingGroup { - if in == nil { - return nil - } - out := new(AutoScalingGroup) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BlockDeviceMapping) DeepCopyInto(out *BlockDeviceMapping) { - *out = *in - out.Ebs = in.Ebs -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BlockDeviceMapping. -func (in *BlockDeviceMapping) DeepCopy() *BlockDeviceMapping { - if in == nil { - return nil - } - out := new(BlockDeviceMapping) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EBS) DeepCopyInto(out *EBS) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EBS. -func (in *EBS) DeepCopy() *EBS { - if in == nil { - return nil - } - out := new(EBS) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FargateProfileSpec) DeepCopyInto(out *FargateProfileSpec) { - *out = *in - if in.SubnetIDs != nil { - in, out := &in.SubnetIDs, &out.SubnetIDs - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.AdditionalTags != nil { - in, out := &in.AdditionalTags, &out.AdditionalTags - *out = make(v1beta2.Tags, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.Selectors != nil { - in, out := &in.Selectors, &out.Selectors - *out = make([]FargateSelector, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FargateProfileSpec. -func (in *FargateProfileSpec) DeepCopy() *FargateProfileSpec { - if in == nil { - return nil - } - out := new(FargateProfileSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FargateProfileStatus) DeepCopyInto(out *FargateProfileStatus) { - *out = *in - if in.FailureReason != nil { - in, out := &in.FailureReason, &out.FailureReason - *out = new(errors.MachineStatusError) - **out = **in - } - if in.FailureMessage != nil { - in, out := &in.FailureMessage, &out.FailureMessage - *out = new(string) - **out = **in - } - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make(apiv1beta1.Conditions, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FargateProfileStatus. -func (in *FargateProfileStatus) DeepCopy() *FargateProfileStatus { - if in == nil { - return nil - } - out := new(FargateProfileStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FargateSelector) DeepCopyInto(out *FargateSelector) { - *out = *in - if in.Labels != nil { - in, out := &in.Labels, &out.Labels - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FargateSelector. -func (in *FargateSelector) DeepCopy() *FargateSelector { - if in == nil { - return nil - } - out := new(FargateSelector) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *InstancesDistribution) DeepCopyInto(out *InstancesDistribution) { - *out = *in - if in.OnDemandBaseCapacity != nil { - in, out := &in.OnDemandBaseCapacity, &out.OnDemandBaseCapacity - *out = new(int64) - **out = **in - } - if in.OnDemandPercentageAboveBaseCapacity != nil { - in, out := &in.OnDemandPercentageAboveBaseCapacity, &out.OnDemandPercentageAboveBaseCapacity - *out = new(int64) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstancesDistribution. -func (in *InstancesDistribution) DeepCopy() *InstancesDistribution { - if in == nil { - return nil - } - out := new(InstancesDistribution) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ManagedMachinePoolScaling) DeepCopyInto(out *ManagedMachinePoolScaling) { - *out = *in - if in.MinSize != nil { - in, out := &in.MinSize, &out.MinSize - *out = new(int32) - **out = **in - } - if in.MaxSize != nil { - in, out := &in.MaxSize, &out.MaxSize - *out = new(int32) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedMachinePoolScaling. -func (in *ManagedMachinePoolScaling) DeepCopy() *ManagedMachinePoolScaling { - if in == nil { - return nil - } - out := new(ManagedMachinePoolScaling) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ManagedRemoteAccess) DeepCopyInto(out *ManagedRemoteAccess) { - *out = *in - if in.SSHKeyName != nil { - in, out := &in.SSHKeyName, &out.SSHKeyName - *out = new(string) - **out = **in - } - if in.SourceSecurityGroups != nil { - in, out := &in.SourceSecurityGroups, &out.SourceSecurityGroups - *out = make([]string, len(*in)) - copy(*out, *in) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedRemoteAccess. -func (in *ManagedRemoteAccess) DeepCopy() *ManagedRemoteAccess { - if in == nil { - return nil - } - out := new(ManagedRemoteAccess) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MixedInstancesPolicy) DeepCopyInto(out *MixedInstancesPolicy) { - *out = *in - if in.InstancesDistribution != nil { - in, out := &in.InstancesDistribution, &out.InstancesDistribution - *out = new(InstancesDistribution) - (*in).DeepCopyInto(*out) - } - if in.Overrides != nil { - in, out := &in.Overrides, &out.Overrides - *out = make([]Overrides, len(*in)) - copy(*out, *in) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MixedInstancesPolicy. -func (in *MixedInstancesPolicy) DeepCopy() *MixedInstancesPolicy { - if in == nil { - return nil - } - out := new(MixedInstancesPolicy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Overrides) DeepCopyInto(out *Overrides) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Overrides. -func (in *Overrides) DeepCopy() *Overrides { - if in == nil { - return nil - } - out := new(Overrides) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RefreshPreferences) DeepCopyInto(out *RefreshPreferences) { - *out = *in - if in.Strategy != nil { - in, out := &in.Strategy, &out.Strategy - *out = new(string) - **out = **in - } - if in.InstanceWarmup != nil { - in, out := &in.InstanceWarmup, &out.InstanceWarmup - *out = new(int64) - **out = **in - } - if in.MinHealthyPercentage != nil { - in, out := &in.MinHealthyPercentage, &out.MinHealthyPercentage - *out = new(int64) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RefreshPreferences. -func (in *RefreshPreferences) DeepCopy() *RefreshPreferences { - if in == nil { - return nil - } - out := new(RefreshPreferences) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in Tags) DeepCopyInto(out *Tags) { - { - in := &in - *out = make(Tags, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tags. -func (in Tags) DeepCopy() Tags { - if in == nil { - return nil - } - out := new(Tags) - in.DeepCopyInto(out) - return *out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Taint) DeepCopyInto(out *Taint) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Taint. -func (in *Taint) DeepCopy() *Taint { - if in == nil { - return nil - } - out := new(Taint) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in Taints) DeepCopyInto(out *Taints) { - { - in := &in - *out = make(Taints, len(*in)) - copy(*out, *in) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Taints. -func (in Taints) DeepCopy() Taints { - if in == nil { - return nil - } - out := new(Taints) - in.DeepCopyInto(out) - return *out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UpdateConfig) DeepCopyInto(out *UpdateConfig) { - *out = *in - if in.MaxUnavailable != nil { - in, out := &in.MaxUnavailable, &out.MaxUnavailable - *out = new(int) - **out = **in - } - if in.MaxUnavailablePercentage != nil { - in, out := &in.MaxUnavailablePercentage, &out.MaxUnavailablePercentage - *out = new(int) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateConfig. -func (in *UpdateConfig) DeepCopy() *UpdateConfig { - if in == nil { - return nil - } - out := new(UpdateConfig) - in.DeepCopyInto(out) - return out -}