sigs.k8s.io/cluster-api@v1.7.1/bootstrap/kubeadm/types/upstreamv1beta3/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 upstreamv1beta3 22 23 import ( 24 corev1 "k8s.io/api/core/v1" 25 "k8s.io/apimachinery/pkg/apis/meta/v1" 26 "k8s.io/apimachinery/pkg/runtime" 27 ) 28 29 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 30 func (in *APIEndpoint) DeepCopyInto(out *APIEndpoint) { 31 *out = *in 32 } 33 34 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIEndpoint. 35 func (in *APIEndpoint) DeepCopy() *APIEndpoint { 36 if in == nil { 37 return nil 38 } 39 out := new(APIEndpoint) 40 in.DeepCopyInto(out) 41 return out 42 } 43 44 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 45 func (in *APIServer) DeepCopyInto(out *APIServer) { 46 *out = *in 47 in.ControlPlaneComponent.DeepCopyInto(&out.ControlPlaneComponent) 48 if in.CertSANs != nil { 49 in, out := &in.CertSANs, &out.CertSANs 50 *out = make([]string, len(*in)) 51 copy(*out, *in) 52 } 53 if in.TimeoutForControlPlane != nil { 54 in, out := &in.TimeoutForControlPlane, &out.TimeoutForControlPlane 55 *out = new(v1.Duration) 56 **out = **in 57 } 58 } 59 60 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIServer. 61 func (in *APIServer) DeepCopy() *APIServer { 62 if in == nil { 63 return nil 64 } 65 out := new(APIServer) 66 in.DeepCopyInto(out) 67 return out 68 } 69 70 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 71 func (in *BootstrapToken) DeepCopyInto(out *BootstrapToken) { 72 *out = *in 73 if in.Token != nil { 74 in, out := &in.Token, &out.Token 75 *out = new(BootstrapTokenString) 76 **out = **in 77 } 78 if in.TTL != nil { 79 in, out := &in.TTL, &out.TTL 80 *out = new(v1.Duration) 81 **out = **in 82 } 83 if in.Expires != nil { 84 in, out := &in.Expires, &out.Expires 85 *out = (*in).DeepCopy() 86 } 87 if in.Usages != nil { 88 in, out := &in.Usages, &out.Usages 89 *out = make([]string, len(*in)) 90 copy(*out, *in) 91 } 92 if in.Groups != nil { 93 in, out := &in.Groups, &out.Groups 94 *out = make([]string, len(*in)) 95 copy(*out, *in) 96 } 97 } 98 99 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootstrapToken. 100 func (in *BootstrapToken) DeepCopy() *BootstrapToken { 101 if in == nil { 102 return nil 103 } 104 out := new(BootstrapToken) 105 in.DeepCopyInto(out) 106 return out 107 } 108 109 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 110 func (in *BootstrapTokenDiscovery) DeepCopyInto(out *BootstrapTokenDiscovery) { 111 *out = *in 112 if in.CACertHashes != nil { 113 in, out := &in.CACertHashes, &out.CACertHashes 114 *out = make([]string, len(*in)) 115 copy(*out, *in) 116 } 117 } 118 119 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootstrapTokenDiscovery. 120 func (in *BootstrapTokenDiscovery) DeepCopy() *BootstrapTokenDiscovery { 121 if in == nil { 122 return nil 123 } 124 out := new(BootstrapTokenDiscovery) 125 in.DeepCopyInto(out) 126 return out 127 } 128 129 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 130 func (in *BootstrapTokenString) DeepCopyInto(out *BootstrapTokenString) { 131 *out = *in 132 } 133 134 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootstrapTokenString. 135 func (in *BootstrapTokenString) DeepCopy() *BootstrapTokenString { 136 if in == nil { 137 return nil 138 } 139 out := new(BootstrapTokenString) 140 in.DeepCopyInto(out) 141 return out 142 } 143 144 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 145 func (in *ClusterConfiguration) DeepCopyInto(out *ClusterConfiguration) { 146 *out = *in 147 out.TypeMeta = in.TypeMeta 148 in.Etcd.DeepCopyInto(&out.Etcd) 149 out.Networking = in.Networking 150 in.APIServer.DeepCopyInto(&out.APIServer) 151 in.ControllerManager.DeepCopyInto(&out.ControllerManager) 152 in.Scheduler.DeepCopyInto(&out.Scheduler) 153 out.DNS = in.DNS 154 if in.FeatureGates != nil { 155 in, out := &in.FeatureGates, &out.FeatureGates 156 *out = make(map[string]bool, len(*in)) 157 for key, val := range *in { 158 (*out)[key] = val 159 } 160 } 161 } 162 163 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfiguration. 164 func (in *ClusterConfiguration) DeepCopy() *ClusterConfiguration { 165 if in == nil { 166 return nil 167 } 168 out := new(ClusterConfiguration) 169 in.DeepCopyInto(out) 170 return out 171 } 172 173 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 174 func (in *ClusterConfiguration) DeepCopyObject() runtime.Object { 175 if c := in.DeepCopy(); c != nil { 176 return c 177 } 178 return nil 179 } 180 181 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 182 func (in *ControlPlaneComponent) DeepCopyInto(out *ControlPlaneComponent) { 183 *out = *in 184 if in.ExtraArgs != nil { 185 in, out := &in.ExtraArgs, &out.ExtraArgs 186 *out = make(map[string]string, len(*in)) 187 for key, val := range *in { 188 (*out)[key] = val 189 } 190 } 191 if in.ExtraVolumes != nil { 192 in, out := &in.ExtraVolumes, &out.ExtraVolumes 193 *out = make([]HostPathMount, len(*in)) 194 copy(*out, *in) 195 } 196 } 197 198 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControlPlaneComponent. 199 func (in *ControlPlaneComponent) DeepCopy() *ControlPlaneComponent { 200 if in == nil { 201 return nil 202 } 203 out := new(ControlPlaneComponent) 204 in.DeepCopyInto(out) 205 return out 206 } 207 208 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 209 func (in *DNS) DeepCopyInto(out *DNS) { 210 *out = *in 211 out.ImageMeta = in.ImageMeta 212 } 213 214 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNS. 215 func (in *DNS) DeepCopy() *DNS { 216 if in == nil { 217 return nil 218 } 219 out := new(DNS) 220 in.DeepCopyInto(out) 221 return out 222 } 223 224 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 225 func (in *Discovery) DeepCopyInto(out *Discovery) { 226 *out = *in 227 if in.BootstrapToken != nil { 228 in, out := &in.BootstrapToken, &out.BootstrapToken 229 *out = new(BootstrapTokenDiscovery) 230 (*in).DeepCopyInto(*out) 231 } 232 if in.File != nil { 233 in, out := &in.File, &out.File 234 *out = new(FileDiscovery) 235 **out = **in 236 } 237 if in.Timeout != nil { 238 in, out := &in.Timeout, &out.Timeout 239 *out = new(v1.Duration) 240 **out = **in 241 } 242 } 243 244 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Discovery. 245 func (in *Discovery) DeepCopy() *Discovery { 246 if in == nil { 247 return nil 248 } 249 out := new(Discovery) 250 in.DeepCopyInto(out) 251 return out 252 } 253 254 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 255 func (in *Etcd) DeepCopyInto(out *Etcd) { 256 *out = *in 257 if in.Local != nil { 258 in, out := &in.Local, &out.Local 259 *out = new(LocalEtcd) 260 (*in).DeepCopyInto(*out) 261 } 262 if in.External != nil { 263 in, out := &in.External, &out.External 264 *out = new(ExternalEtcd) 265 (*in).DeepCopyInto(*out) 266 } 267 } 268 269 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Etcd. 270 func (in *Etcd) DeepCopy() *Etcd { 271 if in == nil { 272 return nil 273 } 274 out := new(Etcd) 275 in.DeepCopyInto(out) 276 return out 277 } 278 279 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 280 func (in *ExternalEtcd) DeepCopyInto(out *ExternalEtcd) { 281 *out = *in 282 if in.Endpoints != nil { 283 in, out := &in.Endpoints, &out.Endpoints 284 *out = make([]string, len(*in)) 285 copy(*out, *in) 286 } 287 } 288 289 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalEtcd. 290 func (in *ExternalEtcd) DeepCopy() *ExternalEtcd { 291 if in == nil { 292 return nil 293 } 294 out := new(ExternalEtcd) 295 in.DeepCopyInto(out) 296 return out 297 } 298 299 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 300 func (in *FileDiscovery) DeepCopyInto(out *FileDiscovery) { 301 *out = *in 302 } 303 304 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileDiscovery. 305 func (in *FileDiscovery) DeepCopy() *FileDiscovery { 306 if in == nil { 307 return nil 308 } 309 out := new(FileDiscovery) 310 in.DeepCopyInto(out) 311 return out 312 } 313 314 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 315 func (in *HostPathMount) DeepCopyInto(out *HostPathMount) { 316 *out = *in 317 } 318 319 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostPathMount. 320 func (in *HostPathMount) DeepCopy() *HostPathMount { 321 if in == nil { 322 return nil 323 } 324 out := new(HostPathMount) 325 in.DeepCopyInto(out) 326 return out 327 } 328 329 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 330 func (in *ImageMeta) DeepCopyInto(out *ImageMeta) { 331 *out = *in 332 } 333 334 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageMeta. 335 func (in *ImageMeta) DeepCopy() *ImageMeta { 336 if in == nil { 337 return nil 338 } 339 out := new(ImageMeta) 340 in.DeepCopyInto(out) 341 return out 342 } 343 344 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 345 func (in *InitConfiguration) DeepCopyInto(out *InitConfiguration) { 346 *out = *in 347 out.TypeMeta = in.TypeMeta 348 if in.BootstrapTokens != nil { 349 in, out := &in.BootstrapTokens, &out.BootstrapTokens 350 *out = make([]BootstrapToken, len(*in)) 351 for i := range *in { 352 (*in)[i].DeepCopyInto(&(*out)[i]) 353 } 354 } 355 in.NodeRegistration.DeepCopyInto(&out.NodeRegistration) 356 out.LocalAPIEndpoint = in.LocalAPIEndpoint 357 if in.SkipPhases != nil { 358 in, out := &in.SkipPhases, &out.SkipPhases 359 *out = make([]string, len(*in)) 360 copy(*out, *in) 361 } 362 if in.Patches != nil { 363 in, out := &in.Patches, &out.Patches 364 *out = new(Patches) 365 **out = **in 366 } 367 } 368 369 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InitConfiguration. 370 func (in *InitConfiguration) DeepCopy() *InitConfiguration { 371 if in == nil { 372 return nil 373 } 374 out := new(InitConfiguration) 375 in.DeepCopyInto(out) 376 return out 377 } 378 379 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 380 func (in *InitConfiguration) DeepCopyObject() runtime.Object { 381 if c := in.DeepCopy(); c != nil { 382 return c 383 } 384 return nil 385 } 386 387 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 388 func (in *JoinConfiguration) DeepCopyInto(out *JoinConfiguration) { 389 *out = *in 390 out.TypeMeta = in.TypeMeta 391 in.NodeRegistration.DeepCopyInto(&out.NodeRegistration) 392 in.Discovery.DeepCopyInto(&out.Discovery) 393 if in.ControlPlane != nil { 394 in, out := &in.ControlPlane, &out.ControlPlane 395 *out = new(JoinControlPlane) 396 **out = **in 397 } 398 if in.SkipPhases != nil { 399 in, out := &in.SkipPhases, &out.SkipPhases 400 *out = make([]string, len(*in)) 401 copy(*out, *in) 402 } 403 if in.Patches != nil { 404 in, out := &in.Patches, &out.Patches 405 *out = new(Patches) 406 **out = **in 407 } 408 } 409 410 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JoinConfiguration. 411 func (in *JoinConfiguration) DeepCopy() *JoinConfiguration { 412 if in == nil { 413 return nil 414 } 415 out := new(JoinConfiguration) 416 in.DeepCopyInto(out) 417 return out 418 } 419 420 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 421 func (in *JoinConfiguration) DeepCopyObject() runtime.Object { 422 if c := in.DeepCopy(); c != nil { 423 return c 424 } 425 return nil 426 } 427 428 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 429 func (in *JoinControlPlane) DeepCopyInto(out *JoinControlPlane) { 430 *out = *in 431 out.LocalAPIEndpoint = in.LocalAPIEndpoint 432 } 433 434 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JoinControlPlane. 435 func (in *JoinControlPlane) DeepCopy() *JoinControlPlane { 436 if in == nil { 437 return nil 438 } 439 out := new(JoinControlPlane) 440 in.DeepCopyInto(out) 441 return out 442 } 443 444 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 445 func (in *LocalEtcd) DeepCopyInto(out *LocalEtcd) { 446 *out = *in 447 out.ImageMeta = in.ImageMeta 448 if in.ExtraArgs != nil { 449 in, out := &in.ExtraArgs, &out.ExtraArgs 450 *out = make(map[string]string, len(*in)) 451 for key, val := range *in { 452 (*out)[key] = val 453 } 454 } 455 if in.ServerCertSANs != nil { 456 in, out := &in.ServerCertSANs, &out.ServerCertSANs 457 *out = make([]string, len(*in)) 458 copy(*out, *in) 459 } 460 if in.PeerCertSANs != nil { 461 in, out := &in.PeerCertSANs, &out.PeerCertSANs 462 *out = make([]string, len(*in)) 463 copy(*out, *in) 464 } 465 } 466 467 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalEtcd. 468 func (in *LocalEtcd) DeepCopy() *LocalEtcd { 469 if in == nil { 470 return nil 471 } 472 out := new(LocalEtcd) 473 in.DeepCopyInto(out) 474 return out 475 } 476 477 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 478 func (in *Networking) DeepCopyInto(out *Networking) { 479 *out = *in 480 } 481 482 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Networking. 483 func (in *Networking) DeepCopy() *Networking { 484 if in == nil { 485 return nil 486 } 487 out := new(Networking) 488 in.DeepCopyInto(out) 489 return out 490 } 491 492 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 493 func (in *NodeRegistrationOptions) DeepCopyInto(out *NodeRegistrationOptions) { 494 *out = *in 495 if in.Taints != nil { 496 in, out := &in.Taints, &out.Taints 497 *out = make([]corev1.Taint, len(*in)) 498 for i := range *in { 499 (*in)[i].DeepCopyInto(&(*out)[i]) 500 } 501 } 502 if in.KubeletExtraArgs != nil { 503 in, out := &in.KubeletExtraArgs, &out.KubeletExtraArgs 504 *out = make(map[string]string, len(*in)) 505 for key, val := range *in { 506 (*out)[key] = val 507 } 508 } 509 if in.IgnorePreflightErrors != nil { 510 in, out := &in.IgnorePreflightErrors, &out.IgnorePreflightErrors 511 *out = make([]string, len(*in)) 512 copy(*out, *in) 513 } 514 } 515 516 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeRegistrationOptions. 517 func (in *NodeRegistrationOptions) DeepCopy() *NodeRegistrationOptions { 518 if in == nil { 519 return nil 520 } 521 out := new(NodeRegistrationOptions) 522 in.DeepCopyInto(out) 523 return out 524 } 525 526 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 527 func (in *Patches) DeepCopyInto(out *Patches) { 528 *out = *in 529 } 530 531 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Patches. 532 func (in *Patches) DeepCopy() *Patches { 533 if in == nil { 534 return nil 535 } 536 out := new(Patches) 537 in.DeepCopyInto(out) 538 return out 539 }