From 511eb1c16f5a6946a2b7237e551e68916af6388f Mon Sep 17 00:00:00 2001 From: Peefy Date: Thu, 31 Oct 2024 10:17:27 +0800 Subject: [PATCH] fix: gateway schema default value and bump version to v0.3.2 Signed-off-by: Peefy --- gateway-api/kcl.mod | 2 +- gateway-api/v1/gateway_networking_k8s_io_v1_http_route.k | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway-api/kcl.mod b/gateway-api/kcl.mod index 92524540..67586395 100644 --- a/gateway-api/kcl.mod +++ b/gateway-api/kcl.mod @@ -1,7 +1,7 @@ [package] name = "gateway-api" edition = "0.0.1" -version = "0.3.1" +version = "0.3.2" [dependencies] k8s = "1.31.2" diff --git a/gateway-api/v1/gateway_networking_k8s_io_v1_http_route.k b/gateway-api/v1/gateway_networking_k8s_io_v1_http_route.k index afc0ad33..8704af1e 100644 --- a/gateway-api/v1/gateway_networking_k8s_io_v1_http_route.k +++ b/gateway-api/v1/gateway_networking_k8s_io_v1_http_route.k @@ -191,7 +191,7 @@ schema GatewayNetworkingK8sIoV1HTTPRouteSpec: - rules : [GatewayNetworkingK8sIoV1HTTPRouteSpecRulesItems0], default is [{"matches": {"value": [{"path": {"value": {"type": {"value": "PathPrefix", "x-order": 0}, "value": {"value": "/", "x-order": 1}}, "x-order": 0}}], "x-order": 0}}], optional + rules : [GatewayNetworkingK8sIoV1HTTPRouteSpecRulesItems0], default is [{matches: [{path: {$type: "PathPrefix", value: "/"}}]}], optional Rules are a list of HTTP matchers, filters and actions. """ @@ -200,7 +200,7 @@ schema GatewayNetworkingK8sIoV1HTTPRouteSpec: parentRefs?: [GatewayNetworkingK8sIoV1HTTPRouteSpecParentRefsItems0] - rules?: [GatewayNetworkingK8sIoV1HTTPRouteSpecRulesItems0] = [{"matches": {"value": [{"path": {"x-order": 0, "value": {"type": {"value": "PathPrefix", "x-order": 0}, "value": {"value": "/", "x-order": 1}}}}], "x-order": 0}}] + rules?: [GatewayNetworkingK8sIoV1HTTPRouteSpecRulesItems0] = [{matches: [{path: {$type: "PathPrefix", value: "/"}}]}] check: