github.com/argoproj/argo-events@v1.9.1/pkg/apis/eventbus/v1alpha1/zz_generated.deepcopy.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 /* 5 Copyright 2021 BlackRock, Inc. 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18 */ 19 20 // Code generated by deepcopy-gen. DO NOT EDIT. 21 22 package v1alpha1 23 24 import ( 25 common "github.com/argoproj/argo-events/pkg/apis/common" 26 v1 "k8s.io/api/core/v1" 27 runtime "k8s.io/apimachinery/pkg/runtime" 28 ) 29 30 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 31 func (in *BusConfig) DeepCopyInto(out *BusConfig) { 32 *out = *in 33 if in.NATS != nil { 34 in, out := &in.NATS, &out.NATS 35 *out = new(NATSConfig) 36 (*in).DeepCopyInto(*out) 37 } 38 if in.JetStream != nil { 39 in, out := &in.JetStream, &out.JetStream 40 *out = new(JetStreamConfig) 41 (*in).DeepCopyInto(*out) 42 } 43 if in.Kafka != nil { 44 in, out := &in.Kafka, &out.Kafka 45 *out = new(KafkaBus) 46 (*in).DeepCopyInto(*out) 47 } 48 return 49 } 50 51 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BusConfig. 52 func (in *BusConfig) DeepCopy() *BusConfig { 53 if in == nil { 54 return nil 55 } 56 out := new(BusConfig) 57 in.DeepCopyInto(out) 58 return out 59 } 60 61 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 62 func (in *ContainerTemplate) DeepCopyInto(out *ContainerTemplate) { 63 *out = *in 64 in.Resources.DeepCopyInto(&out.Resources) 65 if in.SecurityContext != nil { 66 in, out := &in.SecurityContext, &out.SecurityContext 67 *out = new(v1.SecurityContext) 68 (*in).DeepCopyInto(*out) 69 } 70 return 71 } 72 73 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerTemplate. 74 func (in *ContainerTemplate) DeepCopy() *ContainerTemplate { 75 if in == nil { 76 return nil 77 } 78 out := new(ContainerTemplate) 79 in.DeepCopyInto(out) 80 return out 81 } 82 83 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 84 func (in *EventBus) DeepCopyInto(out *EventBus) { 85 *out = *in 86 out.TypeMeta = in.TypeMeta 87 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 88 in.Spec.DeepCopyInto(&out.Spec) 89 in.Status.DeepCopyInto(&out.Status) 90 return 91 } 92 93 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventBus. 94 func (in *EventBus) DeepCopy() *EventBus { 95 if in == nil { 96 return nil 97 } 98 out := new(EventBus) 99 in.DeepCopyInto(out) 100 return out 101 } 102 103 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 104 func (in *EventBus) DeepCopyObject() runtime.Object { 105 if c := in.DeepCopy(); c != nil { 106 return c 107 } 108 return nil 109 } 110 111 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 112 func (in *EventBusList) DeepCopyInto(out *EventBusList) { 113 *out = *in 114 out.TypeMeta = in.TypeMeta 115 in.ListMeta.DeepCopyInto(&out.ListMeta) 116 if in.Items != nil { 117 in, out := &in.Items, &out.Items 118 *out = make([]EventBus, len(*in)) 119 for i := range *in { 120 (*in)[i].DeepCopyInto(&(*out)[i]) 121 } 122 } 123 return 124 } 125 126 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventBusList. 127 func (in *EventBusList) DeepCopy() *EventBusList { 128 if in == nil { 129 return nil 130 } 131 out := new(EventBusList) 132 in.DeepCopyInto(out) 133 return out 134 } 135 136 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 137 func (in *EventBusList) DeepCopyObject() runtime.Object { 138 if c := in.DeepCopy(); c != nil { 139 return c 140 } 141 return nil 142 } 143 144 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 145 func (in *EventBusSpec) DeepCopyInto(out *EventBusSpec) { 146 *out = *in 147 if in.NATS != nil { 148 in, out := &in.NATS, &out.NATS 149 *out = new(NATSBus) 150 (*in).DeepCopyInto(*out) 151 } 152 if in.JetStream != nil { 153 in, out := &in.JetStream, &out.JetStream 154 *out = new(JetStreamBus) 155 (*in).DeepCopyInto(*out) 156 } 157 if in.Kafka != nil { 158 in, out := &in.Kafka, &out.Kafka 159 *out = new(KafkaBus) 160 (*in).DeepCopyInto(*out) 161 } 162 if in.JetStreamExotic != nil { 163 in, out := &in.JetStreamExotic, &out.JetStreamExotic 164 *out = new(JetStreamConfig) 165 (*in).DeepCopyInto(*out) 166 } 167 return 168 } 169 170 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventBusSpec. 171 func (in *EventBusSpec) DeepCopy() *EventBusSpec { 172 if in == nil { 173 return nil 174 } 175 out := new(EventBusSpec) 176 in.DeepCopyInto(out) 177 return out 178 } 179 180 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 181 func (in *EventBusStatus) DeepCopyInto(out *EventBusStatus) { 182 *out = *in 183 in.Status.DeepCopyInto(&out.Status) 184 in.Config.DeepCopyInto(&out.Config) 185 return 186 } 187 188 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventBusStatus. 189 func (in *EventBusStatus) DeepCopy() *EventBusStatus { 190 if in == nil { 191 return nil 192 } 193 out := new(EventBusStatus) 194 in.DeepCopyInto(out) 195 return out 196 } 197 198 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 199 func (in *JetStreamBus) DeepCopyInto(out *JetStreamBus) { 200 *out = *in 201 if in.Replicas != nil { 202 in, out := &in.Replicas, &out.Replicas 203 *out = new(int32) 204 **out = **in 205 } 206 if in.ContainerTemplate != nil { 207 in, out := &in.ContainerTemplate, &out.ContainerTemplate 208 *out = new(ContainerTemplate) 209 (*in).DeepCopyInto(*out) 210 } 211 if in.ReloaderContainerTemplate != nil { 212 in, out := &in.ReloaderContainerTemplate, &out.ReloaderContainerTemplate 213 *out = new(ContainerTemplate) 214 (*in).DeepCopyInto(*out) 215 } 216 if in.MetricsContainerTemplate != nil { 217 in, out := &in.MetricsContainerTemplate, &out.MetricsContainerTemplate 218 *out = new(ContainerTemplate) 219 (*in).DeepCopyInto(*out) 220 } 221 if in.Persistence != nil { 222 in, out := &in.Persistence, &out.Persistence 223 *out = new(PersistenceStrategy) 224 (*in).DeepCopyInto(*out) 225 } 226 if in.Metadata != nil { 227 in, out := &in.Metadata, &out.Metadata 228 *out = new(common.Metadata) 229 (*in).DeepCopyInto(*out) 230 } 231 if in.NodeSelector != nil { 232 in, out := &in.NodeSelector, &out.NodeSelector 233 *out = make(map[string]string, len(*in)) 234 for key, val := range *in { 235 (*out)[key] = val 236 } 237 } 238 if in.Tolerations != nil { 239 in, out := &in.Tolerations, &out.Tolerations 240 *out = make([]v1.Toleration, len(*in)) 241 for i := range *in { 242 (*in)[i].DeepCopyInto(&(*out)[i]) 243 } 244 } 245 if in.SecurityContext != nil { 246 in, out := &in.SecurityContext, &out.SecurityContext 247 *out = new(v1.PodSecurityContext) 248 (*in).DeepCopyInto(*out) 249 } 250 if in.ImagePullSecrets != nil { 251 in, out := &in.ImagePullSecrets, &out.ImagePullSecrets 252 *out = make([]v1.LocalObjectReference, len(*in)) 253 copy(*out, *in) 254 } 255 if in.Priority != nil { 256 in, out := &in.Priority, &out.Priority 257 *out = new(int32) 258 **out = **in 259 } 260 if in.Affinity != nil { 261 in, out := &in.Affinity, &out.Affinity 262 *out = new(v1.Affinity) 263 (*in).DeepCopyInto(*out) 264 } 265 if in.Settings != nil { 266 in, out := &in.Settings, &out.Settings 267 *out = new(string) 268 **out = **in 269 } 270 if in.StartArgs != nil { 271 in, out := &in.StartArgs, &out.StartArgs 272 *out = make([]string, len(*in)) 273 copy(*out, *in) 274 } 275 if in.StreamConfig != nil { 276 in, out := &in.StreamConfig, &out.StreamConfig 277 *out = new(string) 278 **out = **in 279 } 280 if in.MaxPayload != nil { 281 in, out := &in.MaxPayload, &out.MaxPayload 282 *out = new(string) 283 **out = **in 284 } 285 return 286 } 287 288 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JetStreamBus. 289 func (in *JetStreamBus) DeepCopy() *JetStreamBus { 290 if in == nil { 291 return nil 292 } 293 out := new(JetStreamBus) 294 in.DeepCopyInto(out) 295 return out 296 } 297 298 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 299 func (in *JetStreamConfig) DeepCopyInto(out *JetStreamConfig) { 300 *out = *in 301 if in.AccessSecret != nil { 302 in, out := &in.AccessSecret, &out.AccessSecret 303 *out = new(v1.SecretKeySelector) 304 (*in).DeepCopyInto(*out) 305 } 306 return 307 } 308 309 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JetStreamConfig. 310 func (in *JetStreamConfig) DeepCopy() *JetStreamConfig { 311 if in == nil { 312 return nil 313 } 314 out := new(JetStreamConfig) 315 in.DeepCopyInto(out) 316 return out 317 } 318 319 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 320 func (in *KafkaBus) DeepCopyInto(out *KafkaBus) { 321 *out = *in 322 if in.TLS != nil { 323 in, out := &in.TLS, &out.TLS 324 *out = new(common.TLSConfig) 325 (*in).DeepCopyInto(*out) 326 } 327 if in.SASL != nil { 328 in, out := &in.SASL, &out.SASL 329 *out = new(common.SASLConfig) 330 (*in).DeepCopyInto(*out) 331 } 332 if in.ConsumerGroup != nil { 333 in, out := &in.ConsumerGroup, &out.ConsumerGroup 334 *out = new(KafkaConsumerGroup) 335 **out = **in 336 } 337 return 338 } 339 340 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaBus. 341 func (in *KafkaBus) DeepCopy() *KafkaBus { 342 if in == nil { 343 return nil 344 } 345 out := new(KafkaBus) 346 in.DeepCopyInto(out) 347 return out 348 } 349 350 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 351 func (in *KafkaConsumerGroup) DeepCopyInto(out *KafkaConsumerGroup) { 352 *out = *in 353 return 354 } 355 356 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaConsumerGroup. 357 func (in *KafkaConsumerGroup) DeepCopy() *KafkaConsumerGroup { 358 if in == nil { 359 return nil 360 } 361 out := new(KafkaConsumerGroup) 362 in.DeepCopyInto(out) 363 return out 364 } 365 366 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 367 func (in *NATSBus) DeepCopyInto(out *NATSBus) { 368 *out = *in 369 if in.Native != nil { 370 in, out := &in.Native, &out.Native 371 *out = new(NativeStrategy) 372 (*in).DeepCopyInto(*out) 373 } 374 if in.Exotic != nil { 375 in, out := &in.Exotic, &out.Exotic 376 *out = new(NATSConfig) 377 (*in).DeepCopyInto(*out) 378 } 379 return 380 } 381 382 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NATSBus. 383 func (in *NATSBus) DeepCopy() *NATSBus { 384 if in == nil { 385 return nil 386 } 387 out := new(NATSBus) 388 in.DeepCopyInto(out) 389 return out 390 } 391 392 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 393 func (in *NATSConfig) DeepCopyInto(out *NATSConfig) { 394 *out = *in 395 if in.ClusterID != nil { 396 in, out := &in.ClusterID, &out.ClusterID 397 *out = new(string) 398 **out = **in 399 } 400 if in.Auth != nil { 401 in, out := &in.Auth, &out.Auth 402 *out = new(AuthStrategy) 403 **out = **in 404 } 405 if in.AccessSecret != nil { 406 in, out := &in.AccessSecret, &out.AccessSecret 407 *out = new(v1.SecretKeySelector) 408 (*in).DeepCopyInto(*out) 409 } 410 return 411 } 412 413 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NATSConfig. 414 func (in *NATSConfig) DeepCopy() *NATSConfig { 415 if in == nil { 416 return nil 417 } 418 out := new(NATSConfig) 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 *NativeStrategy) DeepCopyInto(out *NativeStrategy) { 425 *out = *in 426 if in.Auth != nil { 427 in, out := &in.Auth, &out.Auth 428 *out = new(AuthStrategy) 429 **out = **in 430 } 431 if in.Persistence != nil { 432 in, out := &in.Persistence, &out.Persistence 433 *out = new(PersistenceStrategy) 434 (*in).DeepCopyInto(*out) 435 } 436 if in.ContainerTemplate != nil { 437 in, out := &in.ContainerTemplate, &out.ContainerTemplate 438 *out = new(ContainerTemplate) 439 (*in).DeepCopyInto(*out) 440 } 441 if in.MetricsContainerTemplate != nil { 442 in, out := &in.MetricsContainerTemplate, &out.MetricsContainerTemplate 443 *out = new(ContainerTemplate) 444 (*in).DeepCopyInto(*out) 445 } 446 if in.NodeSelector != nil { 447 in, out := &in.NodeSelector, &out.NodeSelector 448 *out = make(map[string]string, len(*in)) 449 for key, val := range *in { 450 (*out)[key] = val 451 } 452 } 453 if in.Tolerations != nil { 454 in, out := &in.Tolerations, &out.Tolerations 455 *out = make([]v1.Toleration, len(*in)) 456 for i := range *in { 457 (*in)[i].DeepCopyInto(&(*out)[i]) 458 } 459 } 460 if in.Metadata != nil { 461 in, out := &in.Metadata, &out.Metadata 462 *out = new(common.Metadata) 463 (*in).DeepCopyInto(*out) 464 } 465 if in.SecurityContext != nil { 466 in, out := &in.SecurityContext, &out.SecurityContext 467 *out = new(v1.PodSecurityContext) 468 (*in).DeepCopyInto(*out) 469 } 470 if in.MaxAge != nil { 471 in, out := &in.MaxAge, &out.MaxAge 472 *out = new(string) 473 **out = **in 474 } 475 if in.ImagePullSecrets != nil { 476 in, out := &in.ImagePullSecrets, &out.ImagePullSecrets 477 *out = make([]v1.LocalObjectReference, len(*in)) 478 copy(*out, *in) 479 } 480 if in.Priority != nil { 481 in, out := &in.Priority, &out.Priority 482 *out = new(int32) 483 **out = **in 484 } 485 if in.Affinity != nil { 486 in, out := &in.Affinity, &out.Affinity 487 *out = new(v1.Affinity) 488 (*in).DeepCopyInto(*out) 489 } 490 if in.MaxMsgs != nil { 491 in, out := &in.MaxMsgs, &out.MaxMsgs 492 *out = new(uint64) 493 **out = **in 494 } 495 if in.MaxBytes != nil { 496 in, out := &in.MaxBytes, &out.MaxBytes 497 *out = new(string) 498 **out = **in 499 } 500 if in.MaxSubs != nil { 501 in, out := &in.MaxSubs, &out.MaxSubs 502 *out = new(uint64) 503 **out = **in 504 } 505 if in.MaxPayload != nil { 506 in, out := &in.MaxPayload, &out.MaxPayload 507 *out = new(string) 508 **out = **in 509 } 510 if in.RaftHeartbeatTimeout != nil { 511 in, out := &in.RaftHeartbeatTimeout, &out.RaftHeartbeatTimeout 512 *out = new(string) 513 **out = **in 514 } 515 if in.RaftElectionTimeout != nil { 516 in, out := &in.RaftElectionTimeout, &out.RaftElectionTimeout 517 *out = new(string) 518 **out = **in 519 } 520 if in.RaftLeaseTimeout != nil { 521 in, out := &in.RaftLeaseTimeout, &out.RaftLeaseTimeout 522 *out = new(string) 523 **out = **in 524 } 525 if in.RaftCommitTimeout != nil { 526 in, out := &in.RaftCommitTimeout, &out.RaftCommitTimeout 527 *out = new(string) 528 **out = **in 529 } 530 return 531 } 532 533 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NativeStrategy. 534 func (in *NativeStrategy) DeepCopy() *NativeStrategy { 535 if in == nil { 536 return nil 537 } 538 out := new(NativeStrategy) 539 in.DeepCopyInto(out) 540 return out 541 } 542 543 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 544 func (in *PersistenceStrategy) DeepCopyInto(out *PersistenceStrategy) { 545 *out = *in 546 if in.StorageClassName != nil { 547 in, out := &in.StorageClassName, &out.StorageClassName 548 *out = new(string) 549 **out = **in 550 } 551 if in.AccessMode != nil { 552 in, out := &in.AccessMode, &out.AccessMode 553 *out = new(v1.PersistentVolumeAccessMode) 554 **out = **in 555 } 556 if in.VolumeSize != nil { 557 in, out := &in.VolumeSize, &out.VolumeSize 558 x := (*in).DeepCopy() 559 *out = &x 560 } 561 return 562 } 563 564 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistenceStrategy. 565 func (in *PersistenceStrategy) DeepCopy() *PersistenceStrategy { 566 if in == nil { 567 return nil 568 } 569 out := new(PersistenceStrategy) 570 in.DeepCopyInto(out) 571 return out 572 }