sigs.k8s.io/cluster-api@v1.7.1/exp/api/v1beta1/zz_generated.deepcopy.go (about)

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