Skip to content

Commit

Permalink
fixup: add missing group kinds
Browse files Browse the repository at this point in the history
Signed-off-by: KevFan <[email protected]>
  • Loading branch information
KevFan committed Aug 21, 2024
1 parent 619af82 commit 0613f74
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
1 change: 1 addition & 0 deletions machinery/core_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
)

var (
NamespaceGroupKind = core.SchemeGroupVersion.WithKind("Namespace").GroupKind()
ServiceGroupKind = core.SchemeGroupVersion.WithKind("Service").GroupKind()
ServicePortGroupKind = core.SchemeGroupVersion.WithKind("ServicePort").GroupKind()
)
Expand Down
29 changes: 16 additions & 13 deletions machinery/gateway_api_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,22 @@ import (
)

var (
GatewayClassGroupKind = gwapiv1.SchemeGroupVersion.WithKind("GatewayClass").GroupKind()
GatewayGroupKind = gwapiv1.SchemeGroupVersion.WithKind("Gateway").GroupKind()
ListenerGroupKind = gwapiv1.SchemeGroupVersion.WithKind("Listener").GroupKind()
HTTPRouteGroupKind = gwapiv1.SchemeGroupVersion.WithKind("HTTPRoute").GroupKind()
HTTPRouteRuleGroupKind = gwapiv1.SchemeGroupVersion.WithKind("HTTPRouteRule").GroupKind()
GRPCRouteGroupKind = gwapiv1.SchemeGroupVersion.WithKind("GRPCRoute").GroupKind()
GRPCRouteRuleGroupKind = gwapiv1.SchemeGroupVersion.WithKind("GRPCRouteRule").GroupKind()
TCPRouteGroupKind = gwapiv1alpha2.SchemeGroupVersion.WithKind("TCPRoute").GroupKind()
TCPRouteRuleGroupKind = gwapiv1alpha2.SchemeGroupVersion.WithKind("TCPRouteRule").GroupKind()
TLSRouteGroupKind = gwapiv1alpha2.SchemeGroupVersion.WithKind("TLSRoute").GroupKind()
TLSRouteRuleGroupKind = gwapiv1alpha2.SchemeGroupVersion.WithKind("TLSRouteRule").GroupKind()
UDPRouteGroupKind = gwapiv1alpha2.SchemeGroupVersion.WithKind("UDPRoute").GroupKind()
UDPRouteRuleGroupKind = gwapiv1alpha2.SchemeGroupVersion.WithKind("UDPRouteRule").GroupKind()
GatewayClassGroupKind = gwapiv1.SchemeGroupVersion.WithKind("GatewayClass").GroupKind()
GatewayGroupKind = gwapiv1.SchemeGroupVersion.WithKind("Gateway").GroupKind()
ListenerGroupKind = gwapiv1.SchemeGroupVersion.WithKind("Listener").GroupKind()
HTTPRouteGroupKind = gwapiv1.SchemeGroupVersion.WithKind("HTTPRoute").GroupKind()
HTTPRouteRuleGroupKind = gwapiv1.SchemeGroupVersion.WithKind("HTTPRouteRule").GroupKind()
GRPCRouteGroupKind = gwapiv1.SchemeGroupVersion.WithKind("GRPCRoute").GroupKind()
GRPCRouteRuleGroupKind = gwapiv1.SchemeGroupVersion.WithKind("GRPCRouteRule").GroupKind()
ReferenceGrantGroupKind = gwapiv1beta1.SchemeGroupVersion.WithKind("ReferenceGrant").GroupKind()
BackendTLSPolicyGroupKind = gwapiv1alpha3.SchemeGroupVersion.WithKind("BackendTLSPolicy").GroupKind()
BackendLBPolicyGroupKind = gwapiv1alpha2.SchemeGroupVersion.WithKind("BackendLBPolicy").GroupKind()
TCPRouteGroupKind = gwapiv1alpha2.SchemeGroupVersion.WithKind("TCPRoute").GroupKind()
TCPRouteRuleGroupKind = gwapiv1alpha2.SchemeGroupVersion.WithKind("TCPRouteRule").GroupKind()
TLSRouteGroupKind = gwapiv1alpha2.SchemeGroupVersion.WithKind("TLSRoute").GroupKind()
TLSRouteRuleGroupKind = gwapiv1alpha2.SchemeGroupVersion.WithKind("TLSRouteRule").GroupKind()
UDPRouteGroupKind = gwapiv1alpha2.SchemeGroupVersion.WithKind("UDPRoute").GroupKind()
UDPRouteRuleGroupKind = gwapiv1alpha2.SchemeGroupVersion.WithKind("UDPRouteRule").GroupKind()
)

const nameSectionNameURLSeparator = '#'
Expand Down

0 comments on commit 0613f74

Please sign in to comment.