github.com/banzaicloud/operator-tools@v0.28.10/pkg/typeoverride/zz_generated.deepcopy.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 // Copyright © 2020 Banzai Cloud 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 // Code generated by controller-gen. DO NOT EDIT. 19 20 package typeoverride 21 22 import ( 23 corev1 "k8s.io/api/core/v1" 24 "k8s.io/apimachinery/pkg/apis/meta/v1" 25 ) 26 27 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 28 func (in *DaemonSet) DeepCopyInto(out *DaemonSet) { 29 *out = *in 30 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 31 in.Spec.DeepCopyInto(&out.Spec) 32 } 33 34 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSet. 35 func (in *DaemonSet) DeepCopy() *DaemonSet { 36 if in == nil { 37 return nil 38 } 39 out := new(DaemonSet) 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 *DaemonSetSpec) DeepCopyInto(out *DaemonSetSpec) { 46 *out = *in 47 if in.Selector != nil { 48 in, out := &in.Selector, &out.Selector 49 *out = new(v1.LabelSelector) 50 (*in).DeepCopyInto(*out) 51 } 52 in.Template.DeepCopyInto(&out.Template) 53 in.UpdateStrategy.DeepCopyInto(&out.UpdateStrategy) 54 if in.RevisionHistoryLimit != nil { 55 in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit 56 *out = new(int32) 57 **out = **in 58 } 59 } 60 61 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetSpec. 62 func (in *DaemonSetSpec) DeepCopy() *DaemonSetSpec { 63 if in == nil { 64 return nil 65 } 66 out := new(DaemonSetSpec) 67 in.DeepCopyInto(out) 68 return out 69 } 70 71 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 72 func (in *Deployment) DeepCopyInto(out *Deployment) { 73 *out = *in 74 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 75 in.Spec.DeepCopyInto(&out.Spec) 76 } 77 78 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Deployment. 79 func (in *Deployment) DeepCopy() *Deployment { 80 if in == nil { 81 return nil 82 } 83 out := new(Deployment) 84 in.DeepCopyInto(out) 85 return out 86 } 87 88 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 89 func (in *DeploymentSpec) DeepCopyInto(out *DeploymentSpec) { 90 *out = *in 91 if in.Replicas != nil { 92 in, out := &in.Replicas, &out.Replicas 93 *out = new(int32) 94 **out = **in 95 } 96 if in.Selector != nil { 97 in, out := &in.Selector, &out.Selector 98 *out = new(v1.LabelSelector) 99 (*in).DeepCopyInto(*out) 100 } 101 in.Template.DeepCopyInto(&out.Template) 102 in.Strategy.DeepCopyInto(&out.Strategy) 103 if in.RevisionHistoryLimit != nil { 104 in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit 105 *out = new(int32) 106 **out = **in 107 } 108 if in.ProgressDeadlineSeconds != nil { 109 in, out := &in.ProgressDeadlineSeconds, &out.ProgressDeadlineSeconds 110 *out = new(int32) 111 **out = **in 112 } 113 } 114 115 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentSpec. 116 func (in *DeploymentSpec) DeepCopy() *DeploymentSpec { 117 if in == nil { 118 return nil 119 } 120 out := new(DeploymentSpec) 121 in.DeepCopyInto(out) 122 return out 123 } 124 125 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 126 func (in *EmbeddedPersistentVolumeClaimObjectMeta) DeepCopyInto(out *EmbeddedPersistentVolumeClaimObjectMeta) { 127 *out = *in 128 if in.Annotations != nil { 129 in, out := &in.Annotations, &out.Annotations 130 *out = make(map[string]string, len(*in)) 131 for key, val := range *in { 132 (*out)[key] = val 133 } 134 } 135 if in.Labels != nil { 136 in, out := &in.Labels, &out.Labels 137 *out = make(map[string]string, len(*in)) 138 for key, val := range *in { 139 (*out)[key] = val 140 } 141 } 142 } 143 144 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmbeddedPersistentVolumeClaimObjectMeta. 145 func (in *EmbeddedPersistentVolumeClaimObjectMeta) DeepCopy() *EmbeddedPersistentVolumeClaimObjectMeta { 146 if in == nil { 147 return nil 148 } 149 out := new(EmbeddedPersistentVolumeClaimObjectMeta) 150 in.DeepCopyInto(out) 151 return out 152 } 153 154 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 155 func (in *IngressExtensionsV1beta1) DeepCopyInto(out *IngressExtensionsV1beta1) { 156 *out = *in 157 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 158 in.Spec.DeepCopyInto(&out.Spec) 159 } 160 161 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressExtensionsV1beta1. 162 func (in *IngressExtensionsV1beta1) DeepCopy() *IngressExtensionsV1beta1 { 163 if in == nil { 164 return nil 165 } 166 out := new(IngressExtensionsV1beta1) 167 in.DeepCopyInto(out) 168 return out 169 } 170 171 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 172 func (in *IngressNetworkingV1beta1) DeepCopyInto(out *IngressNetworkingV1beta1) { 173 *out = *in 174 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 175 in.Spec.DeepCopyInto(&out.Spec) 176 } 177 178 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressNetworkingV1beta1. 179 func (in *IngressNetworkingV1beta1) DeepCopy() *IngressNetworkingV1beta1 { 180 if in == nil { 181 return nil 182 } 183 out := new(IngressNetworkingV1beta1) 184 in.DeepCopyInto(out) 185 return out 186 } 187 188 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 189 func (in *ObjectMeta) DeepCopyInto(out *ObjectMeta) { 190 *out = *in 191 if in.Annotations != nil { 192 in, out := &in.Annotations, &out.Annotations 193 *out = make(map[string]string, len(*in)) 194 for key, val := range *in { 195 (*out)[key] = val 196 } 197 } 198 if in.Labels != nil { 199 in, out := &in.Labels, &out.Labels 200 *out = make(map[string]string, len(*in)) 201 for key, val := range *in { 202 (*out)[key] = val 203 } 204 } 205 } 206 207 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMeta. 208 func (in *ObjectMeta) DeepCopy() *ObjectMeta { 209 if in == nil { 210 return nil 211 } 212 out := new(ObjectMeta) 213 in.DeepCopyInto(out) 214 return out 215 } 216 217 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 218 func (in *PersistentVolumeClaim) DeepCopyInto(out *PersistentVolumeClaim) { 219 *out = *in 220 in.EmbeddedPersistentVolumeClaimObjectMeta.DeepCopyInto(&out.EmbeddedPersistentVolumeClaimObjectMeta) 221 in.Spec.DeepCopyInto(&out.Spec) 222 } 223 224 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaim. 225 func (in *PersistentVolumeClaim) DeepCopy() *PersistentVolumeClaim { 226 if in == nil { 227 return nil 228 } 229 out := new(PersistentVolumeClaim) 230 in.DeepCopyInto(out) 231 return out 232 } 233 234 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 235 func (in *PodSpec) DeepCopyInto(out *PodSpec) { 236 *out = *in 237 if in.Volumes != nil { 238 in, out := &in.Volumes, &out.Volumes 239 *out = make([]corev1.Volume, len(*in)) 240 for i := range *in { 241 (*in)[i].DeepCopyInto(&(*out)[i]) 242 } 243 } 244 if in.InitContainers != nil { 245 in, out := &in.InitContainers, &out.InitContainers 246 *out = make([]corev1.Container, len(*in)) 247 for i := range *in { 248 (*in)[i].DeepCopyInto(&(*out)[i]) 249 } 250 } 251 if in.Containers != nil { 252 in, out := &in.Containers, &out.Containers 253 *out = make([]corev1.Container, len(*in)) 254 for i := range *in { 255 (*in)[i].DeepCopyInto(&(*out)[i]) 256 } 257 } 258 if in.EphemeralContainers != nil { 259 in, out := &in.EphemeralContainers, &out.EphemeralContainers 260 *out = make([]corev1.EphemeralContainer, len(*in)) 261 for i := range *in { 262 (*in)[i].DeepCopyInto(&(*out)[i]) 263 } 264 } 265 if in.TerminationGracePeriodSeconds != nil { 266 in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds 267 *out = new(int64) 268 **out = **in 269 } 270 if in.ActiveDeadlineSeconds != nil { 271 in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds 272 *out = new(int64) 273 **out = **in 274 } 275 if in.NodeSelector != nil { 276 in, out := &in.NodeSelector, &out.NodeSelector 277 *out = make(map[string]string, len(*in)) 278 for key, val := range *in { 279 (*out)[key] = val 280 } 281 } 282 if in.AutomountServiceAccountToken != nil { 283 in, out := &in.AutomountServiceAccountToken, &out.AutomountServiceAccountToken 284 *out = new(bool) 285 **out = **in 286 } 287 if in.ShareProcessNamespace != nil { 288 in, out := &in.ShareProcessNamespace, &out.ShareProcessNamespace 289 *out = new(bool) 290 **out = **in 291 } 292 if in.SecurityContext != nil { 293 in, out := &in.SecurityContext, &out.SecurityContext 294 *out = new(corev1.PodSecurityContext) 295 (*in).DeepCopyInto(*out) 296 } 297 if in.ImagePullSecrets != nil { 298 in, out := &in.ImagePullSecrets, &out.ImagePullSecrets 299 *out = make([]corev1.LocalObjectReference, len(*in)) 300 copy(*out, *in) 301 } 302 if in.Affinity != nil { 303 in, out := &in.Affinity, &out.Affinity 304 *out = new(corev1.Affinity) 305 (*in).DeepCopyInto(*out) 306 } 307 if in.Tolerations != nil { 308 in, out := &in.Tolerations, &out.Tolerations 309 *out = make([]corev1.Toleration, len(*in)) 310 for i := range *in { 311 (*in)[i].DeepCopyInto(&(*out)[i]) 312 } 313 } 314 if in.HostAliases != nil { 315 in, out := &in.HostAliases, &out.HostAliases 316 *out = make([]corev1.HostAlias, len(*in)) 317 for i := range *in { 318 (*in)[i].DeepCopyInto(&(*out)[i]) 319 } 320 } 321 if in.Priority != nil { 322 in, out := &in.Priority, &out.Priority 323 *out = new(int32) 324 **out = **in 325 } 326 if in.DNSConfig != nil { 327 in, out := &in.DNSConfig, &out.DNSConfig 328 *out = new(corev1.PodDNSConfig) 329 (*in).DeepCopyInto(*out) 330 } 331 if in.ReadinessGates != nil { 332 in, out := &in.ReadinessGates, &out.ReadinessGates 333 *out = make([]corev1.PodReadinessGate, len(*in)) 334 copy(*out, *in) 335 } 336 if in.RuntimeClassName != nil { 337 in, out := &in.RuntimeClassName, &out.RuntimeClassName 338 *out = new(string) 339 **out = **in 340 } 341 if in.EnableServiceLinks != nil { 342 in, out := &in.EnableServiceLinks, &out.EnableServiceLinks 343 *out = new(bool) 344 **out = **in 345 } 346 if in.PreemptionPolicy != nil { 347 in, out := &in.PreemptionPolicy, &out.PreemptionPolicy 348 *out = new(corev1.PreemptionPolicy) 349 **out = **in 350 } 351 if in.Overhead != nil { 352 in, out := &in.Overhead, &out.Overhead 353 *out = make(corev1.ResourceList, len(*in)) 354 for key, val := range *in { 355 (*out)[key] = val.DeepCopy() 356 } 357 } 358 if in.TopologySpreadConstraints != nil { 359 in, out := &in.TopologySpreadConstraints, &out.TopologySpreadConstraints 360 *out = make([]corev1.TopologySpreadConstraint, len(*in)) 361 for i := range *in { 362 (*in)[i].DeepCopyInto(&(*out)[i]) 363 } 364 } 365 if in.SetHostnameAsFQDN != nil { 366 in, out := &in.SetHostnameAsFQDN, &out.SetHostnameAsFQDN 367 *out = new(bool) 368 **out = **in 369 } 370 } 371 372 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSpec. 373 func (in *PodSpec) DeepCopy() *PodSpec { 374 if in == nil { 375 return nil 376 } 377 out := new(PodSpec) 378 in.DeepCopyInto(out) 379 return out 380 } 381 382 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 383 func (in *PodTemplateSpec) DeepCopyInto(out *PodTemplateSpec) { 384 *out = *in 385 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 386 in.Spec.DeepCopyInto(&out.Spec) 387 } 388 389 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodTemplateSpec. 390 func (in *PodTemplateSpec) DeepCopy() *PodTemplateSpec { 391 if in == nil { 392 return nil 393 } 394 out := new(PodTemplateSpec) 395 in.DeepCopyInto(out) 396 return out 397 } 398 399 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 400 func (in *Service) DeepCopyInto(out *Service) { 401 *out = *in 402 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 403 in.Spec.DeepCopyInto(&out.Spec) 404 } 405 406 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service. 407 func (in *Service) DeepCopy() *Service { 408 if in == nil { 409 return nil 410 } 411 out := new(Service) 412 in.DeepCopyInto(out) 413 return out 414 } 415 416 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 417 func (in *ServiceAccount) DeepCopyInto(out *ServiceAccount) { 418 *out = *in 419 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 420 if in.Secrets != nil { 421 in, out := &in.Secrets, &out.Secrets 422 *out = make([]corev1.ObjectReference, len(*in)) 423 copy(*out, *in) 424 } 425 if in.ImagePullSecrets != nil { 426 in, out := &in.ImagePullSecrets, &out.ImagePullSecrets 427 *out = make([]corev1.LocalObjectReference, len(*in)) 428 copy(*out, *in) 429 } 430 if in.AutomountServiceAccountToken != nil { 431 in, out := &in.AutomountServiceAccountToken, &out.AutomountServiceAccountToken 432 *out = new(bool) 433 **out = **in 434 } 435 } 436 437 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccount. 438 func (in *ServiceAccount) DeepCopy() *ServiceAccount { 439 if in == nil { 440 return nil 441 } 442 out := new(ServiceAccount) 443 in.DeepCopyInto(out) 444 return out 445 } 446 447 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 448 func (in *StatefulSet) DeepCopyInto(out *StatefulSet) { 449 *out = *in 450 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 451 in.Spec.DeepCopyInto(&out.Spec) 452 } 453 454 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSet. 455 func (in *StatefulSet) DeepCopy() *StatefulSet { 456 if in == nil { 457 return nil 458 } 459 out := new(StatefulSet) 460 in.DeepCopyInto(out) 461 return out 462 } 463 464 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 465 func (in *StatefulSetSpec) DeepCopyInto(out *StatefulSetSpec) { 466 *out = *in 467 if in.Replicas != nil { 468 in, out := &in.Replicas, &out.Replicas 469 *out = new(int32) 470 **out = **in 471 } 472 if in.Selector != nil { 473 in, out := &in.Selector, &out.Selector 474 *out = new(v1.LabelSelector) 475 (*in).DeepCopyInto(*out) 476 } 477 in.Template.DeepCopyInto(&out.Template) 478 if in.VolumeClaimTemplates != nil { 479 in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates 480 *out = make([]PersistentVolumeClaim, len(*in)) 481 for i := range *in { 482 (*in)[i].DeepCopyInto(&(*out)[i]) 483 } 484 } 485 in.UpdateStrategy.DeepCopyInto(&out.UpdateStrategy) 486 if in.RevisionHistoryLimit != nil { 487 in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit 488 *out = new(int32) 489 **out = **in 490 } 491 } 492 493 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetSpec. 494 func (in *StatefulSetSpec) DeepCopy() *StatefulSetSpec { 495 if in == nil { 496 return nil 497 } 498 out := new(StatefulSetSpec) 499 in.DeepCopyInto(out) 500 return out 501 }