sigs.k8s.io/cluster-api@v1.7.1/controlplane/kubeadm/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/apimachinery/pkg/apis/meta/v1" 25 "k8s.io/apimachinery/pkg/runtime" 26 "k8s.io/apimachinery/pkg/util/intstr" 27 apiv1beta1 "sigs.k8s.io/cluster-api/api/v1beta1" 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 if in.NodeVolumeDetachTimeout != nil { 100 in, out := &in.NodeVolumeDetachTimeout, &out.NodeVolumeDetachTimeout 101 *out = new(v1.Duration) 102 **out = **in 103 } 104 if in.NodeDeletionTimeout != nil { 105 in, out := &in.NodeDeletionTimeout, &out.NodeDeletionTimeout 106 *out = new(v1.Duration) 107 **out = **in 108 } 109 } 110 111 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneMachineTemplate. 112 func (in *KubeadmControlPlaneMachineTemplate) DeepCopy() *KubeadmControlPlaneMachineTemplate { 113 if in == nil { 114 return nil 115 } 116 out := new(KubeadmControlPlaneMachineTemplate) 117 in.DeepCopyInto(out) 118 return out 119 } 120 121 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 122 func (in *KubeadmControlPlaneSpec) DeepCopyInto(out *KubeadmControlPlaneSpec) { 123 *out = *in 124 if in.Replicas != nil { 125 in, out := &in.Replicas, &out.Replicas 126 *out = new(int32) 127 **out = **in 128 } 129 in.MachineTemplate.DeepCopyInto(&out.MachineTemplate) 130 in.KubeadmConfigSpec.DeepCopyInto(&out.KubeadmConfigSpec) 131 if in.RolloutBefore != nil { 132 in, out := &in.RolloutBefore, &out.RolloutBefore 133 *out = new(RolloutBefore) 134 (*in).DeepCopyInto(*out) 135 } 136 if in.RolloutAfter != nil { 137 in, out := &in.RolloutAfter, &out.RolloutAfter 138 *out = (*in).DeepCopy() 139 } 140 if in.RolloutStrategy != nil { 141 in, out := &in.RolloutStrategy, &out.RolloutStrategy 142 *out = new(RolloutStrategy) 143 (*in).DeepCopyInto(*out) 144 } 145 if in.RemediationStrategy != nil { 146 in, out := &in.RemediationStrategy, &out.RemediationStrategy 147 *out = new(RemediationStrategy) 148 (*in).DeepCopyInto(*out) 149 } 150 } 151 152 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneSpec. 153 func (in *KubeadmControlPlaneSpec) DeepCopy() *KubeadmControlPlaneSpec { 154 if in == nil { 155 return nil 156 } 157 out := new(KubeadmControlPlaneSpec) 158 in.DeepCopyInto(out) 159 return out 160 } 161 162 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 163 func (in *KubeadmControlPlaneStatus) DeepCopyInto(out *KubeadmControlPlaneStatus) { 164 *out = *in 165 if in.Version != nil { 166 in, out := &in.Version, &out.Version 167 *out = new(string) 168 **out = **in 169 } 170 if in.FailureMessage != nil { 171 in, out := &in.FailureMessage, &out.FailureMessage 172 *out = new(string) 173 **out = **in 174 } 175 if in.Conditions != nil { 176 in, out := &in.Conditions, &out.Conditions 177 *out = make(apiv1beta1.Conditions, len(*in)) 178 for i := range *in { 179 (*in)[i].DeepCopyInto(&(*out)[i]) 180 } 181 } 182 if in.LastRemediation != nil { 183 in, out := &in.LastRemediation, &out.LastRemediation 184 *out = new(LastRemediationStatus) 185 (*in).DeepCopyInto(*out) 186 } 187 } 188 189 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneStatus. 190 func (in *KubeadmControlPlaneStatus) DeepCopy() *KubeadmControlPlaneStatus { 191 if in == nil { 192 return nil 193 } 194 out := new(KubeadmControlPlaneStatus) 195 in.DeepCopyInto(out) 196 return out 197 } 198 199 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 200 func (in *KubeadmControlPlaneTemplate) DeepCopyInto(out *KubeadmControlPlaneTemplate) { 201 *out = *in 202 out.TypeMeta = in.TypeMeta 203 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 204 in.Spec.DeepCopyInto(&out.Spec) 205 } 206 207 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneTemplate. 208 func (in *KubeadmControlPlaneTemplate) DeepCopy() *KubeadmControlPlaneTemplate { 209 if in == nil { 210 return nil 211 } 212 out := new(KubeadmControlPlaneTemplate) 213 in.DeepCopyInto(out) 214 return out 215 } 216 217 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 218 func (in *KubeadmControlPlaneTemplate) DeepCopyObject() runtime.Object { 219 if c := in.DeepCopy(); c != nil { 220 return c 221 } 222 return nil 223 } 224 225 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 226 func (in *KubeadmControlPlaneTemplateList) DeepCopyInto(out *KubeadmControlPlaneTemplateList) { 227 *out = *in 228 out.TypeMeta = in.TypeMeta 229 in.ListMeta.DeepCopyInto(&out.ListMeta) 230 if in.Items != nil { 231 in, out := &in.Items, &out.Items 232 *out = make([]KubeadmControlPlaneTemplate, len(*in)) 233 for i := range *in { 234 (*in)[i].DeepCopyInto(&(*out)[i]) 235 } 236 } 237 } 238 239 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneTemplateList. 240 func (in *KubeadmControlPlaneTemplateList) DeepCopy() *KubeadmControlPlaneTemplateList { 241 if in == nil { 242 return nil 243 } 244 out := new(KubeadmControlPlaneTemplateList) 245 in.DeepCopyInto(out) 246 return out 247 } 248 249 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 250 func (in *KubeadmControlPlaneTemplateList) DeepCopyObject() runtime.Object { 251 if c := in.DeepCopy(); c != nil { 252 return c 253 } 254 return nil 255 } 256 257 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 258 func (in *KubeadmControlPlaneTemplateMachineTemplate) DeepCopyInto(out *KubeadmControlPlaneTemplateMachineTemplate) { 259 *out = *in 260 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 261 if in.NodeDrainTimeout != nil { 262 in, out := &in.NodeDrainTimeout, &out.NodeDrainTimeout 263 *out = new(v1.Duration) 264 **out = **in 265 } 266 if in.NodeVolumeDetachTimeout != nil { 267 in, out := &in.NodeVolumeDetachTimeout, &out.NodeVolumeDetachTimeout 268 *out = new(v1.Duration) 269 **out = **in 270 } 271 if in.NodeDeletionTimeout != nil { 272 in, out := &in.NodeDeletionTimeout, &out.NodeDeletionTimeout 273 *out = new(v1.Duration) 274 **out = **in 275 } 276 } 277 278 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneTemplateMachineTemplate. 279 func (in *KubeadmControlPlaneTemplateMachineTemplate) DeepCopy() *KubeadmControlPlaneTemplateMachineTemplate { 280 if in == nil { 281 return nil 282 } 283 out := new(KubeadmControlPlaneTemplateMachineTemplate) 284 in.DeepCopyInto(out) 285 return out 286 } 287 288 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 289 func (in *KubeadmControlPlaneTemplateResource) DeepCopyInto(out *KubeadmControlPlaneTemplateResource) { 290 *out = *in 291 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 292 in.Spec.DeepCopyInto(&out.Spec) 293 } 294 295 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneTemplateResource. 296 func (in *KubeadmControlPlaneTemplateResource) DeepCopy() *KubeadmControlPlaneTemplateResource { 297 if in == nil { 298 return nil 299 } 300 out := new(KubeadmControlPlaneTemplateResource) 301 in.DeepCopyInto(out) 302 return out 303 } 304 305 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 306 func (in *KubeadmControlPlaneTemplateResourceSpec) DeepCopyInto(out *KubeadmControlPlaneTemplateResourceSpec) { 307 *out = *in 308 if in.MachineTemplate != nil { 309 in, out := &in.MachineTemplate, &out.MachineTemplate 310 *out = new(KubeadmControlPlaneTemplateMachineTemplate) 311 (*in).DeepCopyInto(*out) 312 } 313 in.KubeadmConfigSpec.DeepCopyInto(&out.KubeadmConfigSpec) 314 if in.RolloutBefore != nil { 315 in, out := &in.RolloutBefore, &out.RolloutBefore 316 *out = new(RolloutBefore) 317 (*in).DeepCopyInto(*out) 318 } 319 if in.RolloutAfter != nil { 320 in, out := &in.RolloutAfter, &out.RolloutAfter 321 *out = (*in).DeepCopy() 322 } 323 if in.RolloutStrategy != nil { 324 in, out := &in.RolloutStrategy, &out.RolloutStrategy 325 *out = new(RolloutStrategy) 326 (*in).DeepCopyInto(*out) 327 } 328 if in.RemediationStrategy != nil { 329 in, out := &in.RemediationStrategy, &out.RemediationStrategy 330 *out = new(RemediationStrategy) 331 (*in).DeepCopyInto(*out) 332 } 333 } 334 335 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneTemplateResourceSpec. 336 func (in *KubeadmControlPlaneTemplateResourceSpec) DeepCopy() *KubeadmControlPlaneTemplateResourceSpec { 337 if in == nil { 338 return nil 339 } 340 out := new(KubeadmControlPlaneTemplateResourceSpec) 341 in.DeepCopyInto(out) 342 return out 343 } 344 345 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 346 func (in *KubeadmControlPlaneTemplateSpec) DeepCopyInto(out *KubeadmControlPlaneTemplateSpec) { 347 *out = *in 348 in.Template.DeepCopyInto(&out.Template) 349 } 350 351 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneTemplateSpec. 352 func (in *KubeadmControlPlaneTemplateSpec) DeepCopy() *KubeadmControlPlaneTemplateSpec { 353 if in == nil { 354 return nil 355 } 356 out := new(KubeadmControlPlaneTemplateSpec) 357 in.DeepCopyInto(out) 358 return out 359 } 360 361 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 362 func (in *LastRemediationStatus) DeepCopyInto(out *LastRemediationStatus) { 363 *out = *in 364 in.Timestamp.DeepCopyInto(&out.Timestamp) 365 } 366 367 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LastRemediationStatus. 368 func (in *LastRemediationStatus) DeepCopy() *LastRemediationStatus { 369 if in == nil { 370 return nil 371 } 372 out := new(LastRemediationStatus) 373 in.DeepCopyInto(out) 374 return out 375 } 376 377 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 378 func (in *RemediationStrategy) DeepCopyInto(out *RemediationStrategy) { 379 *out = *in 380 if in.MaxRetry != nil { 381 in, out := &in.MaxRetry, &out.MaxRetry 382 *out = new(int32) 383 **out = **in 384 } 385 out.RetryPeriod = in.RetryPeriod 386 if in.MinHealthyPeriod != nil { 387 in, out := &in.MinHealthyPeriod, &out.MinHealthyPeriod 388 *out = new(v1.Duration) 389 **out = **in 390 } 391 } 392 393 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemediationStrategy. 394 func (in *RemediationStrategy) DeepCopy() *RemediationStrategy { 395 if in == nil { 396 return nil 397 } 398 out := new(RemediationStrategy) 399 in.DeepCopyInto(out) 400 return out 401 } 402 403 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 404 func (in *RollingUpdate) DeepCopyInto(out *RollingUpdate) { 405 *out = *in 406 if in.MaxSurge != nil { 407 in, out := &in.MaxSurge, &out.MaxSurge 408 *out = new(intstr.IntOrString) 409 **out = **in 410 } 411 } 412 413 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdate. 414 func (in *RollingUpdate) DeepCopy() *RollingUpdate { 415 if in == nil { 416 return nil 417 } 418 out := new(RollingUpdate) 419 in.DeepCopyInto(out) 420 return out 421 } 422 423 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 424 func (in *RolloutBefore) DeepCopyInto(out *RolloutBefore) { 425 *out = *in 426 if in.CertificatesExpiryDays != nil { 427 in, out := &in.CertificatesExpiryDays, &out.CertificatesExpiryDays 428 *out = new(int32) 429 **out = **in 430 } 431 } 432 433 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutBefore. 434 func (in *RolloutBefore) DeepCopy() *RolloutBefore { 435 if in == nil { 436 return nil 437 } 438 out := new(RolloutBefore) 439 in.DeepCopyInto(out) 440 return out 441 } 442 443 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 444 func (in *RolloutStrategy) DeepCopyInto(out *RolloutStrategy) { 445 *out = *in 446 if in.RollingUpdate != nil { 447 in, out := &in.RollingUpdate, &out.RollingUpdate 448 *out = new(RollingUpdate) 449 (*in).DeepCopyInto(*out) 450 } 451 } 452 453 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutStrategy. 454 func (in *RolloutStrategy) DeepCopy() *RolloutStrategy { 455 if in == nil { 456 return nil 457 } 458 out := new(RolloutStrategy) 459 in.DeepCopyInto(out) 460 return out 461 }