Skip to content

Commit

Permalink
use grpcRoute api version v1
Browse files Browse the repository at this point in the history
  • Loading branch information
arvindbr8 committed Dec 2, 2024
1 parent 2bae77d commit e1e41a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions framework/infrastructure/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def grpc_route(self, version: str) -> dynamic_res.Resource:
api_name = "gateway.networking.k8s.io"
kind = "GRPCRoute"
supported_versions = {
"v1alpha2",
"v1",
}
if version not in supported_versions:
raise NotImplementedError(
Expand All @@ -185,7 +185,7 @@ def grpc_route(self, version: str) -> dynamic_res.Resource:
def http_route(self, version: str) -> dynamic_res.Resource:
api_name = "gateway.networking.k8s.io"
kind = "HTTPRoute"
supported_versions = {"v1alpha2", "v1beta1"}
supported_versions = {"v1", "v1beta1"}
if version not in supported_versions:
raise NotImplementedError(
f"{kind} {api_name}/{version} not implemented."
Expand Down Expand Up @@ -331,7 +331,7 @@ def api_gke_mesh(self) -> dynamic_res.Resource:
@functools.cache
def api_grpc_route(self) -> dynamic_res.Resource:
return self._get_dynamic_api(
"gateway.networking.k8s.io/v1alpha2",
"gateway.networking.k8s.io/v1",
"GRPCRoute",
)

Expand Down
2 changes: 1 addition & 1 deletion kubernetes-manifests/gamma/route_grpc.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
kind: GRPCRoute
apiVersion: gateway.networking.k8s.io/v1alpha2
apiVersion: gateway.networking.k8s.io/v1
metadata:
name: ${route_name}
namespace: ${namespace_name}
Expand Down

0 comments on commit e1e41a3

Please sign in to comment.