github.com/giantswarm/apiextensions/v6@v6.6.0/pkg/apis/capiexp/v1alpha3/zz_generated.deepcopy.go (about)

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  /*
     5  Copyright 2023 Giant Swarm GmbH.
     6  
     7  Licensed under the Apache License, Version 2.0 (the "License");
     8  you may not use this file except in compliance with the License.
     9  You may obtain a copy of the License at
    10  
    11      http://www.apache.org/licenses/LICENSE-2.0
    12  
    13  Unless required by applicable law or agreed to in writing, software
    14  distributed under the License is distributed on an "AS IS" BASIS,
    15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    16  See the License for the specific language governing permissions and
    17  limitations under the License.
    18  */
    19  
    20  // Code generated by controller-gen. DO NOT EDIT.
    21  
    22  package v1alpha3
    23  
    24  import (
    25  	v1 "k8s.io/api/core/v1"
    26  	"k8s.io/apimachinery/pkg/runtime"
    27  	apiv1alpha3 "sigs.k8s.io/cluster-api/api/v1alpha3"
    28  	"sigs.k8s.io/cluster-api/errors"
    29  )
    30  
    31  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    32  func (in *MachinePool) DeepCopyInto(out *MachinePool) {
    33  	*out = *in
    34  	out.TypeMeta = in.TypeMeta
    35  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
    36  	in.Spec.DeepCopyInto(&out.Spec)
    37  	in.Status.DeepCopyInto(&out.Status)
    38  }
    39  
    40  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachinePool.
    41  func (in *MachinePool) DeepCopy() *MachinePool {
    42  	if in == nil {
    43  		return nil
    44  	}
    45  	out := new(MachinePool)
    46  	in.DeepCopyInto(out)
    47  	return out
    48  }
    49  
    50  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    51  func (in *MachinePool) DeepCopyObject() runtime.Object {
    52  	if c := in.DeepCopy(); c != nil {
    53  		return c
    54  	}
    55  	return nil
    56  }
    57  
    58  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    59  func (in *MachinePoolList) DeepCopyInto(out *MachinePoolList) {
    60  	*out = *in
    61  	out.TypeMeta = in.TypeMeta
    62  	in.ListMeta.DeepCopyInto(&out.ListMeta)
    63  	if in.Items != nil {
    64  		in, out := &in.Items, &out.Items
    65  		*out = make([]MachinePool, len(*in))
    66  		for i := range *in {
    67  			(*in)[i].DeepCopyInto(&(*out)[i])
    68  		}
    69  	}
    70  }
    71  
    72  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachinePoolList.
    73  func (in *MachinePoolList) DeepCopy() *MachinePoolList {
    74  	if in == nil {
    75  		return nil
    76  	}
    77  	out := new(MachinePoolList)
    78  	in.DeepCopyInto(out)
    79  	return out
    80  }
    81  
    82  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    83  func (in *MachinePoolList) DeepCopyObject() runtime.Object {
    84  	if c := in.DeepCopy(); c != nil {
    85  		return c
    86  	}
    87  	return nil
    88  }
    89  
    90  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    91  func (in *MachinePoolSpec) DeepCopyInto(out *MachinePoolSpec) {
    92  	*out = *in
    93  	if in.Replicas != nil {
    94  		in, out := &in.Replicas, &out.Replicas
    95  		*out = new(int32)
    96  		**out = **in
    97  	}
    98  	in.Template.DeepCopyInto(&out.Template)
    99  	if in.Strategy != nil {
   100  		in, out := &in.Strategy, &out.Strategy
   101  		*out = new(apiv1alpha3.MachineDeploymentStrategy)
   102  		(*in).DeepCopyInto(*out)
   103  	}
   104  	if in.MinReadySeconds != nil {
   105  		in, out := &in.MinReadySeconds, &out.MinReadySeconds
   106  		*out = new(int32)
   107  		**out = **in
   108  	}
   109  	if in.ProviderIDList != nil {
   110  		in, out := &in.ProviderIDList, &out.ProviderIDList
   111  		*out = make([]string, len(*in))
   112  		copy(*out, *in)
   113  	}
   114  	if in.FailureDomains != nil {
   115  		in, out := &in.FailureDomains, &out.FailureDomains
   116  		*out = make([]string, len(*in))
   117  		copy(*out, *in)
   118  	}
   119  }
   120  
   121  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachinePoolSpec.
   122  func (in *MachinePoolSpec) DeepCopy() *MachinePoolSpec {
   123  	if in == nil {
   124  		return nil
   125  	}
   126  	out := new(MachinePoolSpec)
   127  	in.DeepCopyInto(out)
   128  	return out
   129  }
   130  
   131  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   132  func (in *MachinePoolStatus) DeepCopyInto(out *MachinePoolStatus) {
   133  	*out = *in
   134  	if in.NodeRefs != nil {
   135  		in, out := &in.NodeRefs, &out.NodeRefs
   136  		*out = make([]v1.ObjectReference, len(*in))
   137  		copy(*out, *in)
   138  	}
   139  	if in.FailureReason != nil {
   140  		in, out := &in.FailureReason, &out.FailureReason
   141  		*out = new(errors.MachinePoolStatusFailure)
   142  		**out = **in
   143  	}
   144  	if in.FailureMessage != nil {
   145  		in, out := &in.FailureMessage, &out.FailureMessage
   146  		*out = new(string)
   147  		**out = **in
   148  	}
   149  	if in.Conditions != nil {
   150  		in, out := &in.Conditions, &out.Conditions
   151  		*out = make(apiv1alpha3.Conditions, len(*in))
   152  		for i := range *in {
   153  			(*in)[i].DeepCopyInto(&(*out)[i])
   154  		}
   155  	}
   156  }
   157  
   158  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachinePoolStatus.
   159  func (in *MachinePoolStatus) DeepCopy() *MachinePoolStatus {
   160  	if in == nil {
   161  		return nil
   162  	}
   163  	out := new(MachinePoolStatus)
   164  	in.DeepCopyInto(out)
   165  	return out
   166  }