github.com/cilium/cilium@v1.16.2/pkg/k8s/apis/cilium.io/v2alpha1/zz_generated.deepequal.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 // SPDX-License-Identifier: Apache-2.0 5 // Copyright Authors of Cilium 6 7 // Code generated by deepequal-gen. DO NOT EDIT. 8 9 package v2alpha1 10 11 // DeepEqual is an autogenerated deepequal function, deeply comparing the 12 // receiver with other. in must be non-nil. 13 func (in *BGPAdvertisement) DeepEqual(other *BGPAdvertisement) bool { 14 if other == nil { 15 return false 16 } 17 18 if in.AdvertisementType != other.AdvertisementType { 19 return false 20 } 21 if (in.Service == nil) != (other.Service == nil) { 22 return false 23 } else if in.Service != nil { 24 if !in.Service.DeepEqual(other.Service) { 25 return false 26 } 27 } 28 29 if (in.Selector == nil) != (other.Selector == nil) { 30 return false 31 } else if in.Selector != nil { 32 if !in.Selector.DeepEqual(other.Selector) { 33 return false 34 } 35 } 36 37 if (in.Attributes == nil) != (other.Attributes == nil) { 38 return false 39 } else if in.Attributes != nil { 40 if !in.Attributes.DeepEqual(other.Attributes) { 41 return false 42 } 43 } 44 45 return true 46 } 47 48 // DeepEqual is an autogenerated deepequal function, deeply comparing the 49 // receiver with other. in must be non-nil. 50 func (in *BGPAttributes) DeepEqual(other *BGPAttributes) bool { 51 if other == nil { 52 return false 53 } 54 55 if (in.Communities == nil) != (other.Communities == nil) { 56 return false 57 } else if in.Communities != nil { 58 if !in.Communities.DeepEqual(other.Communities) { 59 return false 60 } 61 } 62 63 if (in.LocalPreference == nil) != (other.LocalPreference == nil) { 64 return false 65 } else if in.LocalPreference != nil { 66 if *in.LocalPreference != *other.LocalPreference { 67 return false 68 } 69 } 70 71 return true 72 } 73 74 // DeepEqual is an autogenerated deepequal function, deeply comparing the 75 // receiver with other. in must be non-nil. 76 func (in *BGPCommunities) DeepEqual(other *BGPCommunities) bool { 77 if other == nil { 78 return false 79 } 80 81 if ((in.Standard != nil) && (other.Standard != nil)) || ((in.Standard == nil) != (other.Standard == nil)) { 82 in, other := &in.Standard, &other.Standard 83 if other == nil { 84 return false 85 } 86 87 if len(*in) != len(*other) { 88 return false 89 } else { 90 for i, inElement := range *in { 91 if inElement != (*other)[i] { 92 return false 93 } 94 } 95 } 96 } 97 98 if ((in.WellKnown != nil) && (other.WellKnown != nil)) || ((in.WellKnown == nil) != (other.WellKnown == nil)) { 99 in, other := &in.WellKnown, &other.WellKnown 100 if other == nil { 101 return false 102 } 103 104 if len(*in) != len(*other) { 105 return false 106 } else { 107 for i, inElement := range *in { 108 if inElement != (*other)[i] { 109 return false 110 } 111 } 112 } 113 } 114 115 if ((in.Large != nil) && (other.Large != nil)) || ((in.Large == nil) != (other.Large == nil)) { 116 in, other := &in.Large, &other.Large 117 if other == nil { 118 return false 119 } 120 121 if len(*in) != len(*other) { 122 return false 123 } else { 124 for i, inElement := range *in { 125 if inElement != (*other)[i] { 126 return false 127 } 128 } 129 } 130 } 131 132 return true 133 } 134 135 // DeepEqual is an autogenerated deepequal function, deeply comparing the 136 // receiver with other. in must be non-nil. 137 func (in *BGPFamilyRouteCount) DeepEqual(other *BGPFamilyRouteCount) bool { 138 if other == nil { 139 return false 140 } 141 142 if in.Afi != other.Afi { 143 return false 144 } 145 if in.Safi != other.Safi { 146 return false 147 } 148 if (in.Received == nil) != (other.Received == nil) { 149 return false 150 } else if in.Received != nil { 151 if *in.Received != *other.Received { 152 return false 153 } 154 } 155 156 if (in.Advertised == nil) != (other.Advertised == nil) { 157 return false 158 } else if in.Advertised != nil { 159 if *in.Advertised != *other.Advertised { 160 return false 161 } 162 } 163 164 return true 165 } 166 167 // DeepEqual is an autogenerated deepequal function, deeply comparing the 168 // receiver with other. in must be non-nil. 169 func (in *BGPServiceOptions) DeepEqual(other *BGPServiceOptions) bool { 170 if other == nil { 171 return false 172 } 173 174 if ((in.Addresses != nil) && (other.Addresses != nil)) || ((in.Addresses == nil) != (other.Addresses == nil)) { 175 in, other := &in.Addresses, &other.Addresses 176 if other == nil { 177 return false 178 } 179 180 if len(*in) != len(*other) { 181 return false 182 } else { 183 for i, inElement := range *in { 184 if inElement != (*other)[i] { 185 return false 186 } 187 } 188 } 189 } 190 191 return true 192 } 193 194 // DeepEqual is an autogenerated deepequal function, deeply comparing the 195 // receiver with other. in must be non-nil. 196 func (in *CiliumBGPAdvertisement) DeepEqual(other *CiliumBGPAdvertisement) bool { 197 if other == nil { 198 return false 199 } 200 201 if !in.Spec.DeepEqual(&other.Spec) { 202 return false 203 } 204 205 return true 206 } 207 208 // DeepEqual is an autogenerated deepequal function, deeply comparing the 209 // receiver with other. in must be non-nil. 210 func (in *CiliumBGPAdvertisementSpec) DeepEqual(other *CiliumBGPAdvertisementSpec) bool { 211 if other == nil { 212 return false 213 } 214 215 if ((in.Advertisements != nil) && (other.Advertisements != nil)) || ((in.Advertisements == nil) != (other.Advertisements == nil)) { 216 in, other := &in.Advertisements, &other.Advertisements 217 if other == nil { 218 return false 219 } 220 221 if len(*in) != len(*other) { 222 return false 223 } else { 224 for i, inElement := range *in { 225 if !inElement.DeepEqual(&(*other)[i]) { 226 return false 227 } 228 } 229 } 230 } 231 232 return true 233 } 234 235 // DeepEqual is an autogenerated deepequal function, deeply comparing the 236 // receiver with other. in must be non-nil. 237 func (in *CiliumBGPClusterConfig) DeepEqual(other *CiliumBGPClusterConfig) bool { 238 if other == nil { 239 return false 240 } 241 242 if !in.Spec.DeepEqual(&other.Spec) { 243 return false 244 } 245 246 return true 247 } 248 249 // DeepEqual is an autogenerated deepequal function, deeply comparing the 250 // receiver with other. in must be non-nil. 251 func (in *CiliumBGPClusterConfigSpec) DeepEqual(other *CiliumBGPClusterConfigSpec) bool { 252 if other == nil { 253 return false 254 } 255 256 if (in.NodeSelector == nil) != (other.NodeSelector == nil) { 257 return false 258 } else if in.NodeSelector != nil { 259 if !in.NodeSelector.DeepEqual(other.NodeSelector) { 260 return false 261 } 262 } 263 264 if ((in.BGPInstances != nil) && (other.BGPInstances != nil)) || ((in.BGPInstances == nil) != (other.BGPInstances == nil)) { 265 in, other := &in.BGPInstances, &other.BGPInstances 266 if other == nil { 267 return false 268 } 269 270 if len(*in) != len(*other) { 271 return false 272 } else { 273 for i, inElement := range *in { 274 if !inElement.DeepEqual(&(*other)[i]) { 275 return false 276 } 277 } 278 } 279 } 280 281 return true 282 } 283 284 // DeepEqual is an autogenerated deepequal function, deeply comparing the 285 // receiver with other. in must be non-nil. 286 func (in *CiliumBGPFamily) DeepEqual(other *CiliumBGPFamily) bool { 287 if other == nil { 288 return false 289 } 290 291 if in.Afi != other.Afi { 292 return false 293 } 294 if in.Safi != other.Safi { 295 return false 296 } 297 298 return true 299 } 300 301 // DeepEqual is an autogenerated deepequal function, deeply comparing the 302 // receiver with other. in must be non-nil. 303 func (in *CiliumBGPFamilyWithAdverts) DeepEqual(other *CiliumBGPFamilyWithAdverts) bool { 304 if other == nil { 305 return false 306 } 307 308 if in.CiliumBGPFamily != other.CiliumBGPFamily { 309 return false 310 } 311 312 if (in.Advertisements == nil) != (other.Advertisements == nil) { 313 return false 314 } else if in.Advertisements != nil { 315 if !in.Advertisements.DeepEqual(other.Advertisements) { 316 return false 317 } 318 } 319 320 return true 321 } 322 323 // DeepEqual is an autogenerated deepequal function, deeply comparing the 324 // receiver with other. in must be non-nil. 325 func (in *CiliumBGPInstance) DeepEqual(other *CiliumBGPInstance) bool { 326 if other == nil { 327 return false 328 } 329 330 if in.Name != other.Name { 331 return false 332 } 333 if (in.LocalASN == nil) != (other.LocalASN == nil) { 334 return false 335 } else if in.LocalASN != nil { 336 if *in.LocalASN != *other.LocalASN { 337 return false 338 } 339 } 340 341 if ((in.Peers != nil) && (other.Peers != nil)) || ((in.Peers == nil) != (other.Peers == nil)) { 342 in, other := &in.Peers, &other.Peers 343 if other == nil { 344 return false 345 } 346 347 if len(*in) != len(*other) { 348 return false 349 } else { 350 for i, inElement := range *in { 351 if !inElement.DeepEqual(&(*other)[i]) { 352 return false 353 } 354 } 355 } 356 } 357 358 return true 359 } 360 361 // DeepEqual is an autogenerated deepequal function, deeply comparing the 362 // receiver with other. in must be non-nil. 363 func (in *CiliumBGPNeighbor) DeepEqual(other *CiliumBGPNeighbor) bool { 364 if other == nil { 365 return false 366 } 367 368 if in.PeerAddress != other.PeerAddress { 369 return false 370 } 371 if (in.PeerPort == nil) != (other.PeerPort == nil) { 372 return false 373 } else if in.PeerPort != nil { 374 if *in.PeerPort != *other.PeerPort { 375 return false 376 } 377 } 378 379 if in.PeerASN != other.PeerASN { 380 return false 381 } 382 if (in.AuthSecretRef == nil) != (other.AuthSecretRef == nil) { 383 return false 384 } else if in.AuthSecretRef != nil { 385 if *in.AuthSecretRef != *other.AuthSecretRef { 386 return false 387 } 388 } 389 390 if (in.EBGPMultihopTTL == nil) != (other.EBGPMultihopTTL == nil) { 391 return false 392 } else if in.EBGPMultihopTTL != nil { 393 if *in.EBGPMultihopTTL != *other.EBGPMultihopTTL { 394 return false 395 } 396 } 397 398 if (in.ConnectRetryTimeSeconds == nil) != (other.ConnectRetryTimeSeconds == nil) { 399 return false 400 } else if in.ConnectRetryTimeSeconds != nil { 401 if *in.ConnectRetryTimeSeconds != *other.ConnectRetryTimeSeconds { 402 return false 403 } 404 } 405 406 if (in.HoldTimeSeconds == nil) != (other.HoldTimeSeconds == nil) { 407 return false 408 } else if in.HoldTimeSeconds != nil { 409 if *in.HoldTimeSeconds != *other.HoldTimeSeconds { 410 return false 411 } 412 } 413 414 if (in.KeepAliveTimeSeconds == nil) != (other.KeepAliveTimeSeconds == nil) { 415 return false 416 } else if in.KeepAliveTimeSeconds != nil { 417 if *in.KeepAliveTimeSeconds != *other.KeepAliveTimeSeconds { 418 return false 419 } 420 } 421 422 if (in.GracefulRestart == nil) != (other.GracefulRestart == nil) { 423 return false 424 } else if in.GracefulRestart != nil { 425 if !in.GracefulRestart.DeepEqual(other.GracefulRestart) { 426 return false 427 } 428 } 429 430 if ((in.Families != nil) && (other.Families != nil)) || ((in.Families == nil) != (other.Families == nil)) { 431 in, other := &in.Families, &other.Families 432 if other == nil { 433 return false 434 } 435 436 if len(*in) != len(*other) { 437 return false 438 } else { 439 for i, inElement := range *in { 440 if !inElement.DeepEqual(&(*other)[i]) { 441 return false 442 } 443 } 444 } 445 } 446 447 if ((in.AdvertisedPathAttributes != nil) && (other.AdvertisedPathAttributes != nil)) || ((in.AdvertisedPathAttributes == nil) != (other.AdvertisedPathAttributes == nil)) { 448 in, other := &in.AdvertisedPathAttributes, &other.AdvertisedPathAttributes 449 if other == nil { 450 return false 451 } 452 453 if len(*in) != len(*other) { 454 return false 455 } else { 456 for i, inElement := range *in { 457 if !inElement.DeepEqual(&(*other)[i]) { 458 return false 459 } 460 } 461 } 462 } 463 464 return true 465 } 466 467 // DeepEqual is an autogenerated deepequal function, deeply comparing the 468 // receiver with other. in must be non-nil. 469 func (in *CiliumBGPNeighborGracefulRestart) DeepEqual(other *CiliumBGPNeighborGracefulRestart) bool { 470 if other == nil { 471 return false 472 } 473 474 if in.Enabled != other.Enabled { 475 return false 476 } 477 if (in.RestartTimeSeconds == nil) != (other.RestartTimeSeconds == nil) { 478 return false 479 } else if in.RestartTimeSeconds != nil { 480 if *in.RestartTimeSeconds != *other.RestartTimeSeconds { 481 return false 482 } 483 } 484 485 return true 486 } 487 488 // DeepEqual is an autogenerated deepequal function, deeply comparing the 489 // receiver with other. in must be non-nil. 490 func (in *CiliumBGPNodeConfig) DeepEqual(other *CiliumBGPNodeConfig) bool { 491 if other == nil { 492 return false 493 } 494 495 if !in.Spec.DeepEqual(&other.Spec) { 496 return false 497 } 498 499 if !in.Status.DeepEqual(&other.Status) { 500 return false 501 } 502 503 return true 504 } 505 506 // DeepEqual is an autogenerated deepequal function, deeply comparing the 507 // receiver with other. in must be non-nil. 508 func (in *CiliumBGPNodeConfigInstanceOverride) DeepEqual(other *CiliumBGPNodeConfigInstanceOverride) bool { 509 if other == nil { 510 return false 511 } 512 513 if in.Name != other.Name { 514 return false 515 } 516 if (in.RouterID == nil) != (other.RouterID == nil) { 517 return false 518 } else if in.RouterID != nil { 519 if *in.RouterID != *other.RouterID { 520 return false 521 } 522 } 523 524 if (in.LocalPort == nil) != (other.LocalPort == nil) { 525 return false 526 } else if in.LocalPort != nil { 527 if *in.LocalPort != *other.LocalPort { 528 return false 529 } 530 } 531 532 if ((in.Peers != nil) && (other.Peers != nil)) || ((in.Peers == nil) != (other.Peers == nil)) { 533 in, other := &in.Peers, &other.Peers 534 if other == nil { 535 return false 536 } 537 538 if len(*in) != len(*other) { 539 return false 540 } else { 541 for i, inElement := range *in { 542 if !inElement.DeepEqual(&(*other)[i]) { 543 return false 544 } 545 } 546 } 547 } 548 549 return true 550 } 551 552 // DeepEqual is an autogenerated deepequal function, deeply comparing the 553 // receiver with other. in must be non-nil. 554 func (in *CiliumBGPNodeConfigOverride) DeepEqual(other *CiliumBGPNodeConfigOverride) bool { 555 if other == nil { 556 return false 557 } 558 559 if !in.Spec.DeepEqual(&other.Spec) { 560 return false 561 } 562 563 return true 564 } 565 566 // DeepEqual is an autogenerated deepequal function, deeply comparing the 567 // receiver with other. in must be non-nil. 568 func (in *CiliumBGPNodeConfigOverrideSpec) DeepEqual(other *CiliumBGPNodeConfigOverrideSpec) bool { 569 if other == nil { 570 return false 571 } 572 573 if ((in.BGPInstances != nil) && (other.BGPInstances != nil)) || ((in.BGPInstances == nil) != (other.BGPInstances == nil)) { 574 in, other := &in.BGPInstances, &other.BGPInstances 575 if other == nil { 576 return false 577 } 578 579 if len(*in) != len(*other) { 580 return false 581 } else { 582 for i, inElement := range *in { 583 if !inElement.DeepEqual(&(*other)[i]) { 584 return false 585 } 586 } 587 } 588 } 589 590 return true 591 } 592 593 // DeepEqual is an autogenerated deepequal function, deeply comparing the 594 // receiver with other. in must be non-nil. 595 func (in *CiliumBGPNodeConfigPeerOverride) DeepEqual(other *CiliumBGPNodeConfigPeerOverride) bool { 596 if other == nil { 597 return false 598 } 599 600 if in.Name != other.Name { 601 return false 602 } 603 if (in.LocalAddress == nil) != (other.LocalAddress == nil) { 604 return false 605 } else if in.LocalAddress != nil { 606 if *in.LocalAddress != *other.LocalAddress { 607 return false 608 } 609 } 610 611 if (in.LocalPort == nil) != (other.LocalPort == nil) { 612 return false 613 } else if in.LocalPort != nil { 614 if *in.LocalPort != *other.LocalPort { 615 return false 616 } 617 } 618 619 return true 620 } 621 622 // DeepEqual is an autogenerated deepequal function, deeply comparing the 623 // receiver with other. in must be non-nil. 624 func (in *CiliumBGPNodeInstance) DeepEqual(other *CiliumBGPNodeInstance) bool { 625 if other == nil { 626 return false 627 } 628 629 if in.Name != other.Name { 630 return false 631 } 632 if (in.LocalASN == nil) != (other.LocalASN == nil) { 633 return false 634 } else if in.LocalASN != nil { 635 if *in.LocalASN != *other.LocalASN { 636 return false 637 } 638 } 639 640 if (in.RouterID == nil) != (other.RouterID == nil) { 641 return false 642 } else if in.RouterID != nil { 643 if *in.RouterID != *other.RouterID { 644 return false 645 } 646 } 647 648 if (in.LocalPort == nil) != (other.LocalPort == nil) { 649 return false 650 } else if in.LocalPort != nil { 651 if *in.LocalPort != *other.LocalPort { 652 return false 653 } 654 } 655 656 if ((in.Peers != nil) && (other.Peers != nil)) || ((in.Peers == nil) != (other.Peers == nil)) { 657 in, other := &in.Peers, &other.Peers 658 if other == nil { 659 return false 660 } 661 662 if len(*in) != len(*other) { 663 return false 664 } else { 665 for i, inElement := range *in { 666 if !inElement.DeepEqual(&(*other)[i]) { 667 return false 668 } 669 } 670 } 671 } 672 673 return true 674 } 675 676 // DeepEqual is an autogenerated deepequal function, deeply comparing the 677 // receiver with other. in must be non-nil. 678 func (in *CiliumBGPNodeInstanceStatus) DeepEqual(other *CiliumBGPNodeInstanceStatus) bool { 679 if other == nil { 680 return false 681 } 682 683 if in.Name != other.Name { 684 return false 685 } 686 if (in.LocalASN == nil) != (other.LocalASN == nil) { 687 return false 688 } else if in.LocalASN != nil { 689 if *in.LocalASN != *other.LocalASN { 690 return false 691 } 692 } 693 694 if ((in.PeerStatuses != nil) && (other.PeerStatuses != nil)) || ((in.PeerStatuses == nil) != (other.PeerStatuses == nil)) { 695 in, other := &in.PeerStatuses, &other.PeerStatuses 696 if other == nil { 697 return false 698 } 699 700 if len(*in) != len(*other) { 701 return false 702 } else { 703 for i, inElement := range *in { 704 if !inElement.DeepEqual(&(*other)[i]) { 705 return false 706 } 707 } 708 } 709 } 710 711 return true 712 } 713 714 // DeepEqual is an autogenerated deepequal function, deeply comparing the 715 // receiver with other. in must be non-nil. 716 func (in *CiliumBGPNodePeer) DeepEqual(other *CiliumBGPNodePeer) bool { 717 if other == nil { 718 return false 719 } 720 721 if in.Name != other.Name { 722 return false 723 } 724 if (in.PeerAddress == nil) != (other.PeerAddress == nil) { 725 return false 726 } else if in.PeerAddress != nil { 727 if *in.PeerAddress != *other.PeerAddress { 728 return false 729 } 730 } 731 732 if (in.PeerASN == nil) != (other.PeerASN == nil) { 733 return false 734 } else if in.PeerASN != nil { 735 if *in.PeerASN != *other.PeerASN { 736 return false 737 } 738 } 739 740 if (in.LocalAddress == nil) != (other.LocalAddress == nil) { 741 return false 742 } else if in.LocalAddress != nil { 743 if *in.LocalAddress != *other.LocalAddress { 744 return false 745 } 746 } 747 748 if (in.PeerConfigRef == nil) != (other.PeerConfigRef == nil) { 749 return false 750 } else if in.PeerConfigRef != nil { 751 if !in.PeerConfigRef.DeepEqual(other.PeerConfigRef) { 752 return false 753 } 754 } 755 756 return true 757 } 758 759 // DeepEqual is an autogenerated deepequal function, deeply comparing the 760 // receiver with other. in must be non-nil. 761 func (in *CiliumBGPNodePeerStatus) DeepEqual(other *CiliumBGPNodePeerStatus) bool { 762 if other == nil { 763 return false 764 } 765 766 if in.Name != other.Name { 767 return false 768 } 769 if in.PeerAddress != other.PeerAddress { 770 return false 771 } 772 if (in.PeerASN == nil) != (other.PeerASN == nil) { 773 return false 774 } else if in.PeerASN != nil { 775 if *in.PeerASN != *other.PeerASN { 776 return false 777 } 778 } 779 780 if (in.PeeringState == nil) != (other.PeeringState == nil) { 781 return false 782 } else if in.PeeringState != nil { 783 if *in.PeeringState != *other.PeeringState { 784 return false 785 } 786 } 787 788 if (in.Timers == nil) != (other.Timers == nil) { 789 return false 790 } else if in.Timers != nil { 791 if !in.Timers.DeepEqual(other.Timers) { 792 return false 793 } 794 } 795 796 if (in.EstablishedTime == nil) != (other.EstablishedTime == nil) { 797 return false 798 } else if in.EstablishedTime != nil { 799 if *in.EstablishedTime != *other.EstablishedTime { 800 return false 801 } 802 } 803 804 if ((in.RouteCount != nil) && (other.RouteCount != nil)) || ((in.RouteCount == nil) != (other.RouteCount == nil)) { 805 in, other := &in.RouteCount, &other.RouteCount 806 if other == nil { 807 return false 808 } 809 810 if len(*in) != len(*other) { 811 return false 812 } else { 813 for i, inElement := range *in { 814 if !inElement.DeepEqual(&(*other)[i]) { 815 return false 816 } 817 } 818 } 819 } 820 821 return true 822 } 823 824 // DeepEqual is an autogenerated deepequal function, deeply comparing the 825 // receiver with other. in must be non-nil. 826 func (in *CiliumBGPNodeSpec) DeepEqual(other *CiliumBGPNodeSpec) bool { 827 if other == nil { 828 return false 829 } 830 831 if ((in.BGPInstances != nil) && (other.BGPInstances != nil)) || ((in.BGPInstances == nil) != (other.BGPInstances == nil)) { 832 in, other := &in.BGPInstances, &other.BGPInstances 833 if other == nil { 834 return false 835 } 836 837 if len(*in) != len(*other) { 838 return false 839 } else { 840 for i, inElement := range *in { 841 if !inElement.DeepEqual(&(*other)[i]) { 842 return false 843 } 844 } 845 } 846 } 847 848 return true 849 } 850 851 // DeepEqual is an autogenerated deepequal function, deeply comparing the 852 // receiver with other. in must be non-nil. 853 func (in *CiliumBGPNodeStatus) DeepEqual(other *CiliumBGPNodeStatus) bool { 854 if other == nil { 855 return false 856 } 857 858 if ((in.BGPInstances != nil) && (other.BGPInstances != nil)) || ((in.BGPInstances == nil) != (other.BGPInstances == nil)) { 859 in, other := &in.BGPInstances, &other.BGPInstances 860 if other == nil { 861 return false 862 } 863 864 if len(*in) != len(*other) { 865 return false 866 } else { 867 for i, inElement := range *in { 868 if !inElement.DeepEqual(&(*other)[i]) { 869 return false 870 } 871 } 872 } 873 } 874 875 return true 876 } 877 878 // DeepEqual is an autogenerated deepequal function, deeply comparing the 879 // receiver with other. in must be non-nil. 880 func (in *CiliumBGPPathAttributes) DeepEqual(other *CiliumBGPPathAttributes) bool { 881 if other == nil { 882 return false 883 } 884 885 if in.SelectorType != other.SelectorType { 886 return false 887 } 888 if (in.Selector == nil) != (other.Selector == nil) { 889 return false 890 } else if in.Selector != nil { 891 if !in.Selector.DeepEqual(other.Selector) { 892 return false 893 } 894 } 895 896 if (in.Communities == nil) != (other.Communities == nil) { 897 return false 898 } else if in.Communities != nil { 899 if !in.Communities.DeepEqual(other.Communities) { 900 return false 901 } 902 } 903 904 if (in.LocalPreference == nil) != (other.LocalPreference == nil) { 905 return false 906 } else if in.LocalPreference != nil { 907 if *in.LocalPreference != *other.LocalPreference { 908 return false 909 } 910 } 911 912 return true 913 } 914 915 // DeepEqual is an autogenerated deepequal function, deeply comparing the 916 // receiver with other. in must be non-nil. 917 func (in *CiliumBGPPeer) DeepEqual(other *CiliumBGPPeer) bool { 918 if other == nil { 919 return false 920 } 921 922 if in.Name != other.Name { 923 return false 924 } 925 if (in.PeerAddress == nil) != (other.PeerAddress == nil) { 926 return false 927 } else if in.PeerAddress != nil { 928 if *in.PeerAddress != *other.PeerAddress { 929 return false 930 } 931 } 932 933 if (in.PeerASN == nil) != (other.PeerASN == nil) { 934 return false 935 } else if in.PeerASN != nil { 936 if *in.PeerASN != *other.PeerASN { 937 return false 938 } 939 } 940 941 if (in.PeerConfigRef == nil) != (other.PeerConfigRef == nil) { 942 return false 943 } else if in.PeerConfigRef != nil { 944 if !in.PeerConfigRef.DeepEqual(other.PeerConfigRef) { 945 return false 946 } 947 } 948 949 return true 950 } 951 952 // DeepEqual is an autogenerated deepequal function, deeply comparing the 953 // receiver with other. in must be non-nil. 954 func (in *CiliumBGPPeerConfig) DeepEqual(other *CiliumBGPPeerConfig) bool { 955 if other == nil { 956 return false 957 } 958 959 if !in.Spec.DeepEqual(&other.Spec) { 960 return false 961 } 962 963 return true 964 } 965 966 // DeepEqual is an autogenerated deepequal function, deeply comparing the 967 // receiver with other. in must be non-nil. 968 func (in *CiliumBGPPeerConfigSpec) DeepEqual(other *CiliumBGPPeerConfigSpec) bool { 969 if other == nil { 970 return false 971 } 972 973 if (in.Transport == nil) != (other.Transport == nil) { 974 return false 975 } else if in.Transport != nil { 976 if !in.Transport.DeepEqual(other.Transport) { 977 return false 978 } 979 } 980 981 if (in.Timers == nil) != (other.Timers == nil) { 982 return false 983 } else if in.Timers != nil { 984 if !in.Timers.DeepEqual(other.Timers) { 985 return false 986 } 987 } 988 989 if (in.AuthSecretRef == nil) != (other.AuthSecretRef == nil) { 990 return false 991 } else if in.AuthSecretRef != nil { 992 if *in.AuthSecretRef != *other.AuthSecretRef { 993 return false 994 } 995 } 996 997 if (in.GracefulRestart == nil) != (other.GracefulRestart == nil) { 998 return false 999 } else if in.GracefulRestart != nil { 1000 if !in.GracefulRestart.DeepEqual(other.GracefulRestart) { 1001 return false 1002 } 1003 } 1004 1005 if (in.EBGPMultihop == nil) != (other.EBGPMultihop == nil) { 1006 return false 1007 } else if in.EBGPMultihop != nil { 1008 if *in.EBGPMultihop != *other.EBGPMultihop { 1009 return false 1010 } 1011 } 1012 1013 if ((in.Families != nil) && (other.Families != nil)) || ((in.Families == nil) != (other.Families == nil)) { 1014 in, other := &in.Families, &other.Families 1015 if other == nil { 1016 return false 1017 } 1018 1019 if len(*in) != len(*other) { 1020 return false 1021 } else { 1022 for i, inElement := range *in { 1023 if !inElement.DeepEqual(&(*other)[i]) { 1024 return false 1025 } 1026 } 1027 } 1028 } 1029 1030 return true 1031 } 1032 1033 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1034 // receiver with other. in must be non-nil. 1035 func (in *CiliumBGPPeeringPolicy) DeepEqual(other *CiliumBGPPeeringPolicy) bool { 1036 if other == nil { 1037 return false 1038 } 1039 1040 if !in.Spec.DeepEqual(&other.Spec) { 1041 return false 1042 } 1043 1044 return true 1045 } 1046 1047 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1048 // receiver with other. in must be non-nil. 1049 func (in *CiliumBGPPeeringPolicySpec) DeepEqual(other *CiliumBGPPeeringPolicySpec) bool { 1050 if other == nil { 1051 return false 1052 } 1053 1054 if (in.NodeSelector == nil) != (other.NodeSelector == nil) { 1055 return false 1056 } else if in.NodeSelector != nil { 1057 if !in.NodeSelector.DeepEqual(other.NodeSelector) { 1058 return false 1059 } 1060 } 1061 1062 if ((in.VirtualRouters != nil) && (other.VirtualRouters != nil)) || ((in.VirtualRouters == nil) != (other.VirtualRouters == nil)) { 1063 in, other := &in.VirtualRouters, &other.VirtualRouters 1064 if other == nil { 1065 return false 1066 } 1067 1068 if len(*in) != len(*other) { 1069 return false 1070 } else { 1071 for i, inElement := range *in { 1072 if !inElement.DeepEqual(&(*other)[i]) { 1073 return false 1074 } 1075 } 1076 } 1077 } 1078 1079 return true 1080 } 1081 1082 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1083 // receiver with other. in must be non-nil. 1084 func (in *CiliumBGPTimers) DeepEqual(other *CiliumBGPTimers) bool { 1085 if other == nil { 1086 return false 1087 } 1088 1089 if (in.ConnectRetryTimeSeconds == nil) != (other.ConnectRetryTimeSeconds == nil) { 1090 return false 1091 } else if in.ConnectRetryTimeSeconds != nil { 1092 if *in.ConnectRetryTimeSeconds != *other.ConnectRetryTimeSeconds { 1093 return false 1094 } 1095 } 1096 1097 if (in.HoldTimeSeconds == nil) != (other.HoldTimeSeconds == nil) { 1098 return false 1099 } else if in.HoldTimeSeconds != nil { 1100 if *in.HoldTimeSeconds != *other.HoldTimeSeconds { 1101 return false 1102 } 1103 } 1104 1105 if (in.KeepAliveTimeSeconds == nil) != (other.KeepAliveTimeSeconds == nil) { 1106 return false 1107 } else if in.KeepAliveTimeSeconds != nil { 1108 if *in.KeepAliveTimeSeconds != *other.KeepAliveTimeSeconds { 1109 return false 1110 } 1111 } 1112 1113 return true 1114 } 1115 1116 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1117 // receiver with other. in must be non-nil. 1118 func (in *CiliumBGPTimersState) DeepEqual(other *CiliumBGPTimersState) bool { 1119 if other == nil { 1120 return false 1121 } 1122 1123 if (in.AppliedHoldTimeSeconds == nil) != (other.AppliedHoldTimeSeconds == nil) { 1124 return false 1125 } else if in.AppliedHoldTimeSeconds != nil { 1126 if *in.AppliedHoldTimeSeconds != *other.AppliedHoldTimeSeconds { 1127 return false 1128 } 1129 } 1130 1131 if (in.AppliedKeepaliveSeconds == nil) != (other.AppliedKeepaliveSeconds == nil) { 1132 return false 1133 } else if in.AppliedKeepaliveSeconds != nil { 1134 if *in.AppliedKeepaliveSeconds != *other.AppliedKeepaliveSeconds { 1135 return false 1136 } 1137 } 1138 1139 return true 1140 } 1141 1142 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1143 // receiver with other. in must be non-nil. 1144 func (in *CiliumBGPTransport) DeepEqual(other *CiliumBGPTransport) bool { 1145 if other == nil { 1146 return false 1147 } 1148 1149 if (in.LocalPort == nil) != (other.LocalPort == nil) { 1150 return false 1151 } else if in.LocalPort != nil { 1152 if *in.LocalPort != *other.LocalPort { 1153 return false 1154 } 1155 } 1156 1157 if (in.PeerPort == nil) != (other.PeerPort == nil) { 1158 return false 1159 } else if in.PeerPort != nil { 1160 if *in.PeerPort != *other.PeerPort { 1161 return false 1162 } 1163 } 1164 1165 return true 1166 } 1167 1168 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1169 // receiver with other. in must be non-nil. 1170 func (in *CiliumBGPVirtualRouter) DeepEqual(other *CiliumBGPVirtualRouter) bool { 1171 if other == nil { 1172 return false 1173 } 1174 1175 if in.LocalASN != other.LocalASN { 1176 return false 1177 } 1178 if (in.ExportPodCIDR == nil) != (other.ExportPodCIDR == nil) { 1179 return false 1180 } else if in.ExportPodCIDR != nil { 1181 if *in.ExportPodCIDR != *other.ExportPodCIDR { 1182 return false 1183 } 1184 } 1185 1186 if (in.PodIPPoolSelector == nil) != (other.PodIPPoolSelector == nil) { 1187 return false 1188 } else if in.PodIPPoolSelector != nil { 1189 if !in.PodIPPoolSelector.DeepEqual(other.PodIPPoolSelector) { 1190 return false 1191 } 1192 } 1193 1194 if (in.ServiceSelector == nil) != (other.ServiceSelector == nil) { 1195 return false 1196 } else if in.ServiceSelector != nil { 1197 if !in.ServiceSelector.DeepEqual(other.ServiceSelector) { 1198 return false 1199 } 1200 } 1201 1202 if ((in.ServiceAdvertisements != nil) && (other.ServiceAdvertisements != nil)) || ((in.ServiceAdvertisements == nil) != (other.ServiceAdvertisements == nil)) { 1203 in, other := &in.ServiceAdvertisements, &other.ServiceAdvertisements 1204 if other == nil { 1205 return false 1206 } 1207 1208 if len(*in) != len(*other) { 1209 return false 1210 } else { 1211 for i, inElement := range *in { 1212 if inElement != (*other)[i] { 1213 return false 1214 } 1215 } 1216 } 1217 } 1218 1219 if ((in.Neighbors != nil) && (other.Neighbors != nil)) || ((in.Neighbors == nil) != (other.Neighbors == nil)) { 1220 in, other := &in.Neighbors, &other.Neighbors 1221 if other == nil { 1222 return false 1223 } 1224 1225 if len(*in) != len(*other) { 1226 return false 1227 } else { 1228 for i, inElement := range *in { 1229 if !inElement.DeepEqual(&(*other)[i]) { 1230 return false 1231 } 1232 } 1233 } 1234 } 1235 1236 return true 1237 } 1238 1239 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1240 // receiver with other. in must be non-nil. 1241 func (in *CiliumCIDRGroupSpec) DeepEqual(other *CiliumCIDRGroupSpec) bool { 1242 if other == nil { 1243 return false 1244 } 1245 1246 if ((in.ExternalCIDRs != nil) && (other.ExternalCIDRs != nil)) || ((in.ExternalCIDRs == nil) != (other.ExternalCIDRs == nil)) { 1247 in, other := &in.ExternalCIDRs, &other.ExternalCIDRs 1248 if other == nil { 1249 return false 1250 } 1251 1252 if len(*in) != len(*other) { 1253 return false 1254 } else { 1255 for i, inElement := range *in { 1256 if inElement != (*other)[i] { 1257 return false 1258 } 1259 } 1260 } 1261 } 1262 1263 return true 1264 } 1265 1266 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1267 // receiver with other. in must be non-nil. 1268 func (in *CiliumEndpointSlice) DeepEqual(other *CiliumEndpointSlice) bool { 1269 if other == nil { 1270 return false 1271 } 1272 1273 if in.Namespace != other.Namespace { 1274 return false 1275 } 1276 if ((in.Endpoints != nil) && (other.Endpoints != nil)) || ((in.Endpoints == nil) != (other.Endpoints == nil)) { 1277 in, other := &in.Endpoints, &other.Endpoints 1278 if other == nil { 1279 return false 1280 } 1281 1282 if len(*in) != len(*other) { 1283 return false 1284 } else { 1285 for i, inElement := range *in { 1286 if !inElement.DeepEqual(&(*other)[i]) { 1287 return false 1288 } 1289 } 1290 } 1291 } 1292 1293 return true 1294 } 1295 1296 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1297 // receiver with other. in must be non-nil. 1298 func (in *CiliumL2AnnouncementPolicy) DeepEqual(other *CiliumL2AnnouncementPolicy) bool { 1299 if other == nil { 1300 return false 1301 } 1302 1303 if !in.Spec.DeepEqual(&other.Spec) { 1304 return false 1305 } 1306 1307 return true 1308 } 1309 1310 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1311 // receiver with other. in must be non-nil. 1312 func (in *CiliumL2AnnouncementPolicySpec) DeepEqual(other *CiliumL2AnnouncementPolicySpec) bool { 1313 if other == nil { 1314 return false 1315 } 1316 1317 if (in.NodeSelector == nil) != (other.NodeSelector == nil) { 1318 return false 1319 } else if in.NodeSelector != nil { 1320 if !in.NodeSelector.DeepEqual(other.NodeSelector) { 1321 return false 1322 } 1323 } 1324 1325 if (in.ServiceSelector == nil) != (other.ServiceSelector == nil) { 1326 return false 1327 } else if in.ServiceSelector != nil { 1328 if !in.ServiceSelector.DeepEqual(other.ServiceSelector) { 1329 return false 1330 } 1331 } 1332 1333 if in.LoadBalancerIPs != other.LoadBalancerIPs { 1334 return false 1335 } 1336 if in.ExternalIPs != other.ExternalIPs { 1337 return false 1338 } 1339 if ((in.Interfaces != nil) && (other.Interfaces != nil)) || ((in.Interfaces == nil) != (other.Interfaces == nil)) { 1340 in, other := &in.Interfaces, &other.Interfaces 1341 if other == nil { 1342 return false 1343 } 1344 1345 if len(*in) != len(*other) { 1346 return false 1347 } else { 1348 for i, inElement := range *in { 1349 if inElement != (*other)[i] { 1350 return false 1351 } 1352 } 1353 } 1354 } 1355 1356 return true 1357 } 1358 1359 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1360 // receiver with other. in must be non-nil. 1361 func (in *CiliumLoadBalancerIPPool) DeepEqual(other *CiliumLoadBalancerIPPool) bool { 1362 if other == nil { 1363 return false 1364 } 1365 1366 if !in.Spec.DeepEqual(&other.Spec) { 1367 return false 1368 } 1369 1370 return true 1371 } 1372 1373 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1374 // receiver with other. in must be non-nil. 1375 func (in *CiliumLoadBalancerIPPoolIPBlock) DeepEqual(other *CiliumLoadBalancerIPPoolIPBlock) bool { 1376 if other == nil { 1377 return false 1378 } 1379 1380 if in.Cidr != other.Cidr { 1381 return false 1382 } 1383 if in.Start != other.Start { 1384 return false 1385 } 1386 if in.Stop != other.Stop { 1387 return false 1388 } 1389 1390 return true 1391 } 1392 1393 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1394 // receiver with other. in must be non-nil. 1395 func (in *CiliumLoadBalancerIPPoolSpec) DeepEqual(other *CiliumLoadBalancerIPPoolSpec) bool { 1396 if other == nil { 1397 return false 1398 } 1399 1400 if (in.ServiceSelector == nil) != (other.ServiceSelector == nil) { 1401 return false 1402 } else if in.ServiceSelector != nil { 1403 if !in.ServiceSelector.DeepEqual(other.ServiceSelector) { 1404 return false 1405 } 1406 } 1407 1408 if in.AllowFirstLastIPs != other.AllowFirstLastIPs { 1409 return false 1410 } 1411 if ((in.Blocks != nil) && (other.Blocks != nil)) || ((in.Blocks == nil) != (other.Blocks == nil)) { 1412 in, other := &in.Blocks, &other.Blocks 1413 if other == nil { 1414 return false 1415 } 1416 1417 if len(*in) != len(*other) { 1418 return false 1419 } else { 1420 for i, inElement := range *in { 1421 if !inElement.DeepEqual(&(*other)[i]) { 1422 return false 1423 } 1424 } 1425 } 1426 } 1427 1428 if in.Disabled != other.Disabled { 1429 return false 1430 } 1431 1432 return true 1433 } 1434 1435 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1436 // receiver with other. in must be non-nil. 1437 func (in *CiliumPodIPPool) DeepEqual(other *CiliumPodIPPool) bool { 1438 if other == nil { 1439 return false 1440 } 1441 1442 if !in.Spec.DeepEqual(&other.Spec) { 1443 return false 1444 } 1445 1446 return true 1447 } 1448 1449 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1450 // receiver with other. in must be non-nil. 1451 func (in *CoreCiliumEndpoint) DeepEqual(other *CoreCiliumEndpoint) bool { 1452 if other == nil { 1453 return false 1454 } 1455 1456 if in.Name != other.Name { 1457 return false 1458 } 1459 if in.IdentityID != other.IdentityID { 1460 return false 1461 } 1462 if (in.Networking == nil) != (other.Networking == nil) { 1463 return false 1464 } else if in.Networking != nil { 1465 if !in.Networking.DeepEqual(other.Networking) { 1466 return false 1467 } 1468 } 1469 1470 if in.Encryption != other.Encryption { 1471 return false 1472 } 1473 1474 if ((in.NamedPorts != nil) && (other.NamedPorts != nil)) || ((in.NamedPorts == nil) != (other.NamedPorts == nil)) { 1475 in, other := &in.NamedPorts, &other.NamedPorts 1476 if other == nil || !in.DeepEqual(other) { 1477 return false 1478 } 1479 } 1480 1481 return true 1482 } 1483 1484 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1485 // receiver with other. in must be non-nil. 1486 func (in *EgressRule) DeepEqual(other *EgressRule) bool { 1487 if other == nil { 1488 return false 1489 } 1490 1491 if (in.NamespaceSelector == nil) != (other.NamespaceSelector == nil) { 1492 return false 1493 } else if in.NamespaceSelector != nil { 1494 if !in.NamespaceSelector.DeepEqual(other.NamespaceSelector) { 1495 return false 1496 } 1497 } 1498 1499 if (in.PodSelector == nil) != (other.PodSelector == nil) { 1500 return false 1501 } else if in.PodSelector != nil { 1502 if !in.PodSelector.DeepEqual(other.PodSelector) { 1503 return false 1504 } 1505 } 1506 1507 return true 1508 } 1509 1510 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1511 // receiver with other. in must be non-nil. 1512 func (in *IPPoolSpec) DeepEqual(other *IPPoolSpec) bool { 1513 if other == nil { 1514 return false 1515 } 1516 1517 if (in.IPv4 == nil) != (other.IPv4 == nil) { 1518 return false 1519 } else if in.IPv4 != nil { 1520 if !in.IPv4.DeepEqual(other.IPv4) { 1521 return false 1522 } 1523 } 1524 1525 if (in.IPv6 == nil) != (other.IPv6 == nil) { 1526 return false 1527 } else if in.IPv6 != nil { 1528 if !in.IPv6.DeepEqual(other.IPv6) { 1529 return false 1530 } 1531 } 1532 1533 return true 1534 } 1535 1536 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1537 // receiver with other. in must be non-nil. 1538 func (in *IPv4PoolSpec) DeepEqual(other *IPv4PoolSpec) bool { 1539 if other == nil { 1540 return false 1541 } 1542 1543 if ((in.CIDRs != nil) && (other.CIDRs != nil)) || ((in.CIDRs == nil) != (other.CIDRs == nil)) { 1544 in, other := &in.CIDRs, &other.CIDRs 1545 if other == nil { 1546 return false 1547 } 1548 1549 if len(*in) != len(*other) { 1550 return false 1551 } else { 1552 for i, inElement := range *in { 1553 if inElement != (*other)[i] { 1554 return false 1555 } 1556 } 1557 } 1558 } 1559 1560 if in.MaskSize != other.MaskSize { 1561 return false 1562 } 1563 1564 return true 1565 } 1566 1567 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1568 // receiver with other. in must be non-nil. 1569 func (in *IPv6PoolSpec) DeepEqual(other *IPv6PoolSpec) bool { 1570 if other == nil { 1571 return false 1572 } 1573 1574 if ((in.CIDRs != nil) && (other.CIDRs != nil)) || ((in.CIDRs == nil) != (other.CIDRs == nil)) { 1575 in, other := &in.CIDRs, &other.CIDRs 1576 if other == nil { 1577 return false 1578 } 1579 1580 if len(*in) != len(*other) { 1581 return false 1582 } else { 1583 for i, inElement := range *in { 1584 if inElement != (*other)[i] { 1585 return false 1586 } 1587 } 1588 } 1589 } 1590 1591 if in.MaskSize != other.MaskSize { 1592 return false 1593 } 1594 1595 return true 1596 } 1597 1598 // DeepEqual is an autogenerated deepequal function, deeply comparing the 1599 // receiver with other. in must be non-nil. 1600 func (in *PeerConfigReference) DeepEqual(other *PeerConfigReference) bool { 1601 if other == nil { 1602 return false 1603 } 1604 1605 if in.Group != other.Group { 1606 return false 1607 } 1608 if in.Kind != other.Kind { 1609 return false 1610 } 1611 if in.Name != other.Name { 1612 return false 1613 } 1614 1615 return true 1616 }