sigs.k8s.io/cluster-api@v1.7.1/internal/apis/core/exp/v1alpha3/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 v1alpha3 22 23 import ( 24 "k8s.io/api/core/v1" 25 runtime "k8s.io/apimachinery/pkg/runtime" 26 apiv1alpha3 "sigs.k8s.io/cluster-api/internal/apis/core/v1alpha3" 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.Strategy != nil { 99 in, out := &in.Strategy, &out.Strategy 100 *out = new(apiv1alpha3.MachineDeploymentStrategy) 101 (*in).DeepCopyInto(*out) 102 } 103 if in.MinReadySeconds != nil { 104 in, out := &in.MinReadySeconds, &out.MinReadySeconds 105 *out = new(int32) 106 **out = **in 107 } 108 if in.ProviderIDList != nil { 109 in, out := &in.ProviderIDList, &out.ProviderIDList 110 *out = make([]string, len(*in)) 111 copy(*out, *in) 112 } 113 if in.FailureDomains != nil { 114 in, out := &in.FailureDomains, &out.FailureDomains 115 *out = make([]string, len(*in)) 116 copy(*out, *in) 117 } 118 } 119 120 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachinePoolSpec. 121 func (in *MachinePoolSpec) DeepCopy() *MachinePoolSpec { 122 if in == nil { 123 return nil 124 } 125 out := new(MachinePoolSpec) 126 in.DeepCopyInto(out) 127 return out 128 } 129 130 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 131 func (in *MachinePoolStatus) DeepCopyInto(out *MachinePoolStatus) { 132 *out = *in 133 if in.NodeRefs != nil { 134 in, out := &in.NodeRefs, &out.NodeRefs 135 *out = make([]v1.ObjectReference, len(*in)) 136 copy(*out, *in) 137 } 138 if in.FailureReason != nil { 139 in, out := &in.FailureReason, &out.FailureReason 140 *out = new(errors.MachinePoolStatusFailure) 141 **out = **in 142 } 143 if in.FailureMessage != nil { 144 in, out := &in.FailureMessage, &out.FailureMessage 145 *out = new(string) 146 **out = **in 147 } 148 if in.Conditions != nil { 149 in, out := &in.Conditions, &out.Conditions 150 *out = make(apiv1alpha3.Conditions, len(*in)) 151 for i := range *in { 152 (*in)[i].DeepCopyInto(&(*out)[i]) 153 } 154 } 155 } 156 157 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachinePoolStatus. 158 func (in *MachinePoolStatus) DeepCopy() *MachinePoolStatus { 159 if in == nil { 160 return nil 161 } 162 out := new(MachinePoolStatus) 163 in.DeepCopyInto(out) 164 return out 165 }