1
1
// WARNING: generated by kopium - manual changes will be overwritten
2
- // kopium command: kopium --schema=derived --derive=JsonSchema --derive=Default --docs -f -
2
+ // kopium command: kopium --schema=derived --derive=JsonSchema --derive=Default --derive=PartialEq -- docs -f -
3
3
// kopium version: 0.20.1
4
4
5
5
#[ allow( unused_imports) ]
@@ -13,7 +13,7 @@ mod prelude {
13
13
use self :: prelude:: * ;
14
14
15
15
/// Spec defines the desired state of Gateway.
16
- #[ derive( CustomResource , Serialize , Deserialize , Clone , Debug , JsonSchema , Default ) ]
16
+ #[ derive( CustomResource , Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
17
17
#[ kube(
18
18
group = "gateway.networking.k8s.io" ,
19
19
version = "v1" ,
@@ -23,6 +23,7 @@ use self::prelude::*;
23
23
#[ kube( namespaced) ]
24
24
#[ kube( status = "GatewayStatus" ) ]
25
25
#[ kube( derive = "Default" ) ]
26
+ #[ kube( derive = "PartialEq" ) ]
26
27
pub struct GatewaySpec {
27
28
/// Addresses requested for this Gateway. This is optional and behavior can
28
29
/// depend on the implementation. If a value is set in the spec and the
@@ -214,7 +215,7 @@ pub struct GatewaySpec {
214
215
}
215
216
216
217
/// GatewayAddress describes an address that can be bound to a Gateway.
217
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default ) ]
218
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
218
219
pub struct GatewayAddresses {
219
220
/// Type of the address.
220
221
#[ serde( default , skip_serializing_if = "Option::is_none" , rename = "type" ) ]
@@ -234,7 +235,7 @@ pub struct GatewayAddresses {
234
235
///
235
236
///
236
237
///
237
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default ) ]
238
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
238
239
pub struct GatewayInfrastructure {
239
240
/// Annotations that SHOULD be applied to any resources created in response to this Gateway.
240
241
///
@@ -298,7 +299,7 @@ pub struct GatewayInfrastructure {
298
299
///
299
300
///
300
301
/// Support: Implementation-specific
301
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default ) ]
302
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
302
303
pub struct GatewayInfrastructureParametersRef {
303
304
/// Group is the group of the referent.
304
305
pub group : String ,
@@ -310,7 +311,7 @@ pub struct GatewayInfrastructureParametersRef {
310
311
311
312
/// Listener embodies the concept of a logical endpoint where a Gateway accepts
312
313
/// network connections.
313
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default ) ]
314
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
314
315
pub struct GatewayListeners {
315
316
/// AllowedRoutes defines the types of routes that MAY be attached to a
316
317
/// Listener and the trusted namespaces where those Route resources MAY be
@@ -442,7 +443,7 @@ pub struct GatewayListeners {
442
443
///
443
444
///
444
445
/// Support: Core
445
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default ) ]
446
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
446
447
pub struct GatewayListenersAllowedRoutes {
447
448
/// Kinds specifies the groups and kinds of Routes that are allowed to bind
448
449
/// to this Gateway Listener. When unspecified or empty, the kinds of Routes
@@ -469,7 +470,7 @@ pub struct GatewayListenersAllowedRoutes {
469
470
}
470
471
471
472
/// RouteGroupKind indicates the group and kind of a Route resource.
472
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default ) ]
473
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
473
474
pub struct GatewayListenersAllowedRoutesKinds {
474
475
/// Group is the group of the Route.
475
476
#[ serde( default , skip_serializing_if = "Option::is_none" ) ]
@@ -483,7 +484,7 @@ pub struct GatewayListenersAllowedRoutesKinds {
483
484
///
484
485
///
485
486
/// Support: Core
486
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default ) ]
487
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
487
488
pub struct GatewayListenersAllowedRoutesNamespaces {
488
489
/// From indicates where Routes will be selected for this Gateway. Possible
489
490
/// values are:
@@ -513,7 +514,7 @@ pub struct GatewayListenersAllowedRoutesNamespaces {
513
514
///
514
515
///
515
516
/// Support: Core
516
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema ) ]
517
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , PartialEq ) ]
517
518
pub enum GatewayListenersAllowedRoutesNamespacesFrom {
518
519
All ,
519
520
Selector ,
@@ -526,7 +527,7 @@ pub enum GatewayListenersAllowedRoutesNamespacesFrom {
526
527
///
527
528
///
528
529
/// Support: Core
529
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default ) ]
530
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
530
531
pub struct GatewayListenersAllowedRoutesNamespacesSelector {
531
532
/// matchExpressions is a list of label selector requirements. The requirements are ANDed.
532
533
#[ serde(
@@ -549,7 +550,7 @@ pub struct GatewayListenersAllowedRoutesNamespacesSelector {
549
550
550
551
/// A label selector requirement is a selector that contains values, a key, and an operator that
551
552
/// relates the key and values.
552
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default ) ]
553
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
553
554
pub struct GatewayListenersAllowedRoutesNamespacesSelectorMatchExpressions {
554
555
/// key is the label key that the selector applies to.
555
556
pub key : String ,
@@ -578,7 +579,7 @@ pub struct GatewayListenersAllowedRoutesNamespacesSelectorMatchExpressions {
578
579
///
579
580
///
580
581
/// Support: Core
581
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default ) ]
582
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
582
583
pub struct GatewayListenersTls {
583
584
/// CertificateRefs contains a series of references to Kubernetes objects that
584
585
/// contains TLS certificates and private keys. These certificates are used to
@@ -677,7 +678,7 @@ pub struct GatewayListenersTls {
677
678
/// References to objects with invalid Group and Kind are not valid, and must
678
679
/// be rejected by the implementation, with appropriate Conditions set
679
680
/// on the containing object.
680
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default ) ]
681
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
681
682
pub struct GatewayListenersTlsCertificateRefs {
682
683
/// Group is the group of the referent. For example, "gateway.networking.k8s.io".
683
684
/// When unspecified or empty string, core API group is inferred.
@@ -714,7 +715,7 @@ pub struct GatewayListenersTlsCertificateRefs {
714
715
///
715
716
///
716
717
///
717
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default ) ]
718
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
718
719
pub struct GatewayListenersTlsFrontendValidation {
719
720
/// CACertificateRefs contains one or more references to
720
721
/// Kubernetes objects that contain TLS certificates of
@@ -759,7 +760,7 @@ pub struct GatewayListenersTlsFrontendValidation {
759
760
/// References to objects with invalid Group and Kind are not valid, and must
760
761
/// be rejected by the implementation, with appropriate Conditions set
761
762
/// on the containing object.
762
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default ) ]
763
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
763
764
pub struct GatewayListenersTlsFrontendValidationCaCertificateRefs {
764
765
/// Group is the group of the referent. For example, "gateway.networking.k8s.io".
765
766
/// When unspecified or empty string, core API group is inferred.
@@ -797,14 +798,14 @@ pub struct GatewayListenersTlsFrontendValidationCaCertificateRefs {
797
798
///
798
799
///
799
800
/// Support: Core
800
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema ) ]
801
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , PartialEq ) ]
801
802
pub enum GatewayListenersTlsMode {
802
803
Terminate ,
803
804
Passthrough ,
804
805
}
805
806
806
807
/// Status defines the current state of Gateway.
807
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default ) ]
808
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
808
809
pub struct GatewayStatus {
809
810
/// Addresses lists the network addresses that have been bound to the
810
811
/// Gateway.
@@ -845,7 +846,7 @@ pub struct GatewayStatus {
845
846
}
846
847
847
848
/// GatewayStatusAddress describes a network address that is bound to a Gateway.
848
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default ) ]
849
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
849
850
pub struct GatewayStatusAddresses {
850
851
/// Type of the address.
851
852
#[ serde( default , skip_serializing_if = "Option::is_none" , rename = "type" ) ]
@@ -859,7 +860,7 @@ pub struct GatewayStatusAddresses {
859
860
}
860
861
861
862
/// ListenerStatus is the status associated with a Listener.
862
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default ) ]
863
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
863
864
pub struct GatewayStatusListeners {
864
865
/// AttachedRoutes represents the total number of Routes that have been
865
866
/// successfully attached to this Listener.
@@ -901,7 +902,7 @@ pub struct GatewayStatusListeners {
901
902
}
902
903
903
904
/// RouteGroupKind indicates the group and kind of a Route resource.
904
- #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default ) ]
905
+ #[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , Default , PartialEq ) ]
905
906
pub struct GatewayStatusListenersSupportedKinds {
906
907
/// Group is the group of the Route.
907
908
#[ serde( default , skip_serializing_if = "Option::is_none" ) ]
0 commit comments