sigs.k8s.io/cluster-api@v1.7.1/internal/apis/controlplane/kubeadm/v1alpha4/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 v1alpha4 22 23 import ( 24 "k8s.io/apimachinery/pkg/apis/meta/v1" 25 "k8s.io/apimachinery/pkg/runtime" 26 "k8s.io/apimachinery/pkg/util/intstr" 27 apiv1alpha4 "sigs.k8s.io/cluster-api/internal/apis/core/v1alpha4" 28 ) 29 30 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 31 func (in *KubeadmControlPlane) DeepCopyInto(out *KubeadmControlPlane) { 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 KubeadmControlPlane. 40 func (in *KubeadmControlPlane) DeepCopy() *KubeadmControlPlane { 41 if in == nil { 42 return nil 43 } 44 out := new(KubeadmControlPlane) 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 *KubeadmControlPlane) 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 *KubeadmControlPlaneList) DeepCopyInto(out *KubeadmControlPlaneList) { 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([]KubeadmControlPlane, 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 KubeadmControlPlaneList. 72 func (in *KubeadmControlPlaneList) DeepCopy() *KubeadmControlPlaneList { 73 if in == nil { 74 return nil 75 } 76 out := new(KubeadmControlPlaneList) 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 *KubeadmControlPlaneList) 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 *KubeadmControlPlaneMachineTemplate) DeepCopyInto(out *KubeadmControlPlaneMachineTemplate) { 91 *out = *in 92 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 93 out.InfrastructureRef = in.InfrastructureRef 94 if in.NodeDrainTimeout != nil { 95 in, out := &in.NodeDrainTimeout, &out.NodeDrainTimeout 96 *out = new(v1.Duration) 97 **out = **in 98 } 99 } 100 101 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneMachineTemplate. 102 func (in *KubeadmControlPlaneMachineTemplate) DeepCopy() *KubeadmControlPlaneMachineTemplate { 103 if in == nil { 104 return nil 105 } 106 out := new(KubeadmControlPlaneMachineTemplate) 107 in.DeepCopyInto(out) 108 return out 109 } 110 111 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 112 func (in *KubeadmControlPlaneSpec) DeepCopyInto(out *KubeadmControlPlaneSpec) { 113 *out = *in 114 if in.Replicas != nil { 115 in, out := &in.Replicas, &out.Replicas 116 *out = new(int32) 117 **out = **in 118 } 119 in.MachineTemplate.DeepCopyInto(&out.MachineTemplate) 120 in.KubeadmConfigSpec.DeepCopyInto(&out.KubeadmConfigSpec) 121 if in.RolloutAfter != nil { 122 in, out := &in.RolloutAfter, &out.RolloutAfter 123 *out = (*in).DeepCopy() 124 } 125 if in.RolloutStrategy != nil { 126 in, out := &in.RolloutStrategy, &out.RolloutStrategy 127 *out = new(RolloutStrategy) 128 (*in).DeepCopyInto(*out) 129 } 130 } 131 132 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneSpec. 133 func (in *KubeadmControlPlaneSpec) DeepCopy() *KubeadmControlPlaneSpec { 134 if in == nil { 135 return nil 136 } 137 out := new(KubeadmControlPlaneSpec) 138 in.DeepCopyInto(out) 139 return out 140 } 141 142 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 143 func (in *KubeadmControlPlaneStatus) DeepCopyInto(out *KubeadmControlPlaneStatus) { 144 *out = *in 145 if in.Version != nil { 146 in, out := &in.Version, &out.Version 147 *out = new(string) 148 **out = **in 149 } 150 if in.FailureMessage != nil { 151 in, out := &in.FailureMessage, &out.FailureMessage 152 *out = new(string) 153 **out = **in 154 } 155 if in.Conditions != nil { 156 in, out := &in.Conditions, &out.Conditions 157 *out = make(apiv1alpha4.Conditions, len(*in)) 158 for i := range *in { 159 (*in)[i].DeepCopyInto(&(*out)[i]) 160 } 161 } 162 } 163 164 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneStatus. 165 func (in *KubeadmControlPlaneStatus) DeepCopy() *KubeadmControlPlaneStatus { 166 if in == nil { 167 return nil 168 } 169 out := new(KubeadmControlPlaneStatus) 170 in.DeepCopyInto(out) 171 return out 172 } 173 174 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 175 func (in *KubeadmControlPlaneTemplate) DeepCopyInto(out *KubeadmControlPlaneTemplate) { 176 *out = *in 177 out.TypeMeta = in.TypeMeta 178 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 179 in.Spec.DeepCopyInto(&out.Spec) 180 } 181 182 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneTemplate. 183 func (in *KubeadmControlPlaneTemplate) DeepCopy() *KubeadmControlPlaneTemplate { 184 if in == nil { 185 return nil 186 } 187 out := new(KubeadmControlPlaneTemplate) 188 in.DeepCopyInto(out) 189 return out 190 } 191 192 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 193 func (in *KubeadmControlPlaneTemplate) DeepCopyObject() runtime.Object { 194 if c := in.DeepCopy(); c != nil { 195 return c 196 } 197 return nil 198 } 199 200 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 201 func (in *KubeadmControlPlaneTemplateList) DeepCopyInto(out *KubeadmControlPlaneTemplateList) { 202 *out = *in 203 out.TypeMeta = in.TypeMeta 204 in.ListMeta.DeepCopyInto(&out.ListMeta) 205 if in.Items != nil { 206 in, out := &in.Items, &out.Items 207 *out = make([]KubeadmControlPlaneTemplate, len(*in)) 208 for i := range *in { 209 (*in)[i].DeepCopyInto(&(*out)[i]) 210 } 211 } 212 } 213 214 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneTemplateList. 215 func (in *KubeadmControlPlaneTemplateList) DeepCopy() *KubeadmControlPlaneTemplateList { 216 if in == nil { 217 return nil 218 } 219 out := new(KubeadmControlPlaneTemplateList) 220 in.DeepCopyInto(out) 221 return out 222 } 223 224 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 225 func (in *KubeadmControlPlaneTemplateList) DeepCopyObject() runtime.Object { 226 if c := in.DeepCopy(); c != nil { 227 return c 228 } 229 return nil 230 } 231 232 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 233 func (in *KubeadmControlPlaneTemplateResource) DeepCopyInto(out *KubeadmControlPlaneTemplateResource) { 234 *out = *in 235 in.Spec.DeepCopyInto(&out.Spec) 236 } 237 238 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneTemplateResource. 239 func (in *KubeadmControlPlaneTemplateResource) DeepCopy() *KubeadmControlPlaneTemplateResource { 240 if in == nil { 241 return nil 242 } 243 out := new(KubeadmControlPlaneTemplateResource) 244 in.DeepCopyInto(out) 245 return out 246 } 247 248 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 249 func (in *KubeadmControlPlaneTemplateSpec) DeepCopyInto(out *KubeadmControlPlaneTemplateSpec) { 250 *out = *in 251 in.Template.DeepCopyInto(&out.Template) 252 } 253 254 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneTemplateSpec. 255 func (in *KubeadmControlPlaneTemplateSpec) DeepCopy() *KubeadmControlPlaneTemplateSpec { 256 if in == nil { 257 return nil 258 } 259 out := new(KubeadmControlPlaneTemplateSpec) 260 in.DeepCopyInto(out) 261 return out 262 } 263 264 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 265 func (in *RollingUpdate) DeepCopyInto(out *RollingUpdate) { 266 *out = *in 267 if in.MaxSurge != nil { 268 in, out := &in.MaxSurge, &out.MaxSurge 269 *out = new(intstr.IntOrString) 270 **out = **in 271 } 272 } 273 274 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdate. 275 func (in *RollingUpdate) DeepCopy() *RollingUpdate { 276 if in == nil { 277 return nil 278 } 279 out := new(RollingUpdate) 280 in.DeepCopyInto(out) 281 return out 282 } 283 284 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 285 func (in *RolloutStrategy) DeepCopyInto(out *RolloutStrategy) { 286 *out = *in 287 if in.RollingUpdate != nil { 288 in, out := &in.RollingUpdate, &out.RollingUpdate 289 *out = new(RollingUpdate) 290 (*in).DeepCopyInto(*out) 291 } 292 } 293 294 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutStrategy. 295 func (in *RolloutStrategy) DeepCopy() *RolloutStrategy { 296 if in == nil { 297 return nil 298 } 299 out := new(RolloutStrategy) 300 in.DeepCopyInto(out) 301 return out 302 }