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