Skip to content

Commit

Permalink
Set apiVersion of ReferenceGrant to v1beta1 (#8134) (#8135)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhoyos authored Feb 7, 2025
1 parent 280b067 commit 718455f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/types/IstioConfigList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const dicTypeToGVK: { [key in gvkType]: GroupVersionKind } = {
[gvkType.K8sGatewayClass]: { Group: 'gateway.networking.k8s.io', Version: 'v1', Kind: 'GatewayClass' },
[gvkType.K8sGRPCRoute]: { Group: 'gateway.networking.k8s.io', Version: 'v1', Kind: 'GRPCRoute' },
[gvkType.K8sHTTPRoute]: { Group: 'gateway.networking.k8s.io', Version: 'v1', Kind: 'HTTPRoute' },
[gvkType.K8sReferenceGrant]: { Group: 'gateway.networking.k8s.io', Version: 'v1', Kind: 'ReferenceGrant' },
[gvkType.K8sReferenceGrant]: { Group: 'gateway.networking.k8s.io', Version: 'v1beta1', Kind: 'ReferenceGrant' },
[gvkType.K8sTCPRoute]: { Group: 'gateway.networking.k8s.io', Version: 'v1alpha2', Kind: 'TCPRoute' },
[gvkType.K8sTLSRoute]: { Group: 'gateway.networking.k8s.io', Version: 'v1alpha2', Kind: 'TLSRoute' },

Expand Down
2 changes: 1 addition & 1 deletion kubernetes/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ var (
K8sGatewayClasses = K8sNetworkingGroupVersionV1.WithKind(K8sGatewayClassType)
K8sGRPCRoutes = K8sNetworkingGroupVersionV1.WithKind(K8sGRPCRouteType)
K8sHTTPRoutes = K8sNetworkingGroupVersionV1.WithKind(K8sHTTPRouteType)
K8sReferenceGrants = K8sNetworkingGroupVersionV1.WithKind(K8sReferenceGrantType)
K8sReferenceGrants = K8sNetworkingGroupVersionV1Beta1.WithKind(K8sReferenceGrantType)
K8sTCPRoutes = K8sNetworkingGroupVersionV1Alpha2.WithKind(K8sTCPRouteType)
K8sTLSRoutes = K8sNetworkingGroupVersionV1Alpha2.WithKind(K8sTLSRouteType)

Expand Down

0 comments on commit 718455f

Please sign in to comment.