From 329a7dca8550cf32a889f115ec63120c003549d5 Mon Sep 17 00:00:00 2001 From: bitliu Date: Wed, 24 Jul 2024 11:09:17 +0800 Subject: [PATCH] fix: remove namespace in policies Signed-off-by: bitliu --- .../content/en/docs/tasks/traffic/circuit-breaker.md | 2 -- .../en/docs/tasks/traffic/client-traffic-policy.md | 6 ------ .../en/docs/tasks/traffic/connection-limit.md | 2 -- .../en/docs/tasks/traffic/global-rate-limit.md | 12 ++---------- site/content/en/docs/tasks/traffic/http3.md | 2 -- .../en/docs/tasks/traffic/local-rate-limit.md | 4 ---- site/content/en/docs/tasks/traffic/retry.md | 2 -- .../en/latest/tasks/traffic/circuit-breaker.md | 2 -- .../en/latest/tasks/traffic/client-traffic-policy.md | 6 ------ .../en/latest/tasks/traffic/connection-limit.md | 2 -- .../en/latest/tasks/traffic/global-rate-limit.md | 8 -------- site/content/en/latest/tasks/traffic/http3.md | 2 -- .../en/latest/tasks/traffic/local-rate-limit.md | 4 ---- site/content/en/latest/tasks/traffic/retry.md | 2 -- .../content/en/v1.1/tasks/traffic/circuit-breaker.md | 2 -- .../en/v1.1/tasks/traffic/client-traffic-policy.md | 6 ------ .../en/v1.1/tasks/traffic/connection-limit.md | 2 -- .../en/v1.1/tasks/traffic/global-rate-limit.md | 12 ++---------- site/content/en/v1.1/tasks/traffic/http3.md | 2 -- .../en/v1.1/tasks/traffic/local-rate-limit.md | 4 ---- site/content/en/v1.1/tasks/traffic/retry.md | 2 -- 21 files changed, 4 insertions(+), 82 deletions(-) diff --git a/site/content/en/docs/tasks/traffic/circuit-breaker.md b/site/content/en/docs/tasks/traffic/circuit-breaker.md index 9480a86a2cd..d3631739549 100644 --- a/site/content/en/docs/tasks/traffic/circuit-breaker.md +++ b/site/content/en/docs/tasks/traffic/circuit-breaker.md @@ -76,7 +76,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: backend - namespace: default circuitBreaker: maxPendingRequests: 0 maxParallelRequests: 10 @@ -98,7 +97,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: backend - namespace: default circuitBreaker: maxPendingRequests: 0 maxParallelRequests: 10 diff --git a/site/content/en/docs/tasks/traffic/client-traffic-policy.md b/site/content/en/docs/tasks/traffic/client-traffic-policy.md index 37d85e5f8e1..894770116ab 100644 --- a/site/content/en/docs/tasks/traffic/client-traffic-policy.md +++ b/site/content/en/docs/tasks/traffic/client-traffic-policy.md @@ -38,7 +38,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default tcpKeepalive: idleTime: 20m interval: 60s @@ -62,7 +61,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default tcpKeepalive: idleTime: 20m interval: 60s @@ -220,7 +218,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default enableProxyProtocol: true EOF ``` @@ -241,7 +238,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default enableProxyProtocol: true ``` @@ -359,7 +355,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default clientIPDetection: xForwardedFor: numTrustedHops: 2 @@ -382,7 +377,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default clientIPDetection: xForwardedFor: numTrustedHops: 2 diff --git a/site/content/en/docs/tasks/traffic/connection-limit.md b/site/content/en/docs/tasks/traffic/connection-limit.md index aac8437dc45..55b0e005f8a 100644 --- a/site/content/en/docs/tasks/traffic/connection-limit.md +++ b/site/content/en/docs/tasks/traffic/connection-limit.md @@ -72,7 +72,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default connection: connectionLimit: value: 5 @@ -95,7 +94,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default connection: connectionLimit: value: 5 diff --git a/site/content/en/docs/tasks/traffic/global-rate-limit.md b/site/content/en/docs/tasks/traffic/global-rate-limit.md index 3f1bfa4f301..83c61861247 100644 --- a/site/content/en/docs/tasks/traffic/global-rate-limit.md +++ b/site/content/en/docs/tasks/traffic/global-rate-limit.md @@ -240,7 +240,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -270,7 +269,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -460,7 +458,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -490,7 +487,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -663,7 +659,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -689,7 +684,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -820,8 +814,7 @@ spec: targetRef: group: gateway.networking.k8s.io kind: HTTPRoute - name: http-ratelimit - namespace: default + name: http-ratelimit rateLimit: type: Global global: @@ -870,8 +863,7 @@ spec: targetRef: group: gateway.networking.k8s.io kind: HTTPRoute - name: http-ratelimit - namespace: default + name: http-ratelimit rateLimit: type: Global global: diff --git a/site/content/en/docs/tasks/traffic/http3.md b/site/content/en/docs/tasks/traffic/http3.md index af95ab8ba57..4fe660ddf7e 100644 --- a/site/content/en/docs/tasks/traffic/http3.md +++ b/site/content/en/docs/tasks/traffic/http3.md @@ -74,7 +74,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default EOF ``` @@ -94,7 +93,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default ``` {{% /tab %}} diff --git a/site/content/en/docs/tasks/traffic/local-rate-limit.md b/site/content/en/docs/tasks/traffic/local-rate-limit.md index 37fb5590a44..4284c7e4fe1 100644 --- a/site/content/en/docs/tasks/traffic/local-rate-limit.md +++ b/site/content/en/docs/tasks/traffic/local-rate-limit.md @@ -50,7 +50,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Local local: @@ -80,7 +79,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Local local: @@ -268,7 +266,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Local local: @@ -294,7 +291,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Local local: diff --git a/site/content/en/docs/tasks/traffic/retry.md b/site/content/en/docs/tasks/traffic/retry.md index 4de8f604f96..83429f35ed7 100644 --- a/site/content/en/docs/tasks/traffic/retry.md +++ b/site/content/en/docs/tasks/traffic/retry.md @@ -60,7 +60,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: backend - namespace: default retry: numRetries: 5 perRetry: @@ -92,7 +91,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: backend - namespace: default retry: numRetries: 5 perRetry: diff --git a/site/content/en/latest/tasks/traffic/circuit-breaker.md b/site/content/en/latest/tasks/traffic/circuit-breaker.md index f866aff1c05..99887dabae9 100644 --- a/site/content/en/latest/tasks/traffic/circuit-breaker.md +++ b/site/content/en/latest/tasks/traffic/circuit-breaker.md @@ -77,7 +77,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: backend - namespace: default circuitBreaker: maxPendingRequests: 0 maxParallelRequests: 10 @@ -99,7 +98,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: backend - namespace: default circuitBreaker: maxPendingRequests: 0 maxParallelRequests: 10 diff --git a/site/content/en/latest/tasks/traffic/client-traffic-policy.md b/site/content/en/latest/tasks/traffic/client-traffic-policy.md index a326c6b9fa1..a6b4a7f9f12 100644 --- a/site/content/en/latest/tasks/traffic/client-traffic-policy.md +++ b/site/content/en/latest/tasks/traffic/client-traffic-policy.md @@ -36,7 +36,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default tcpKeepalive: idleTime: 20m interval: 60s @@ -60,7 +59,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default tcpKeepalive: idleTime: 20m interval: 60s @@ -218,7 +216,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default enableProxyProtocol: true EOF ``` @@ -239,7 +236,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default enableProxyProtocol: true ``` @@ -357,7 +353,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default clientIPDetection: xForwardedFor: numTrustedHops: 2 @@ -380,7 +375,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default clientIPDetection: xForwardedFor: numTrustedHops: 2 diff --git a/site/content/en/latest/tasks/traffic/connection-limit.md b/site/content/en/latest/tasks/traffic/connection-limit.md index 24678a5e095..21f679e73f3 100644 --- a/site/content/en/latest/tasks/traffic/connection-limit.md +++ b/site/content/en/latest/tasks/traffic/connection-limit.md @@ -72,7 +72,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default connection: connectionLimit: value: 5 @@ -95,7 +94,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default connection: connectionLimit: value: 5 diff --git a/site/content/en/latest/tasks/traffic/global-rate-limit.md b/site/content/en/latest/tasks/traffic/global-rate-limit.md index 505eb4dc2fa..9dd732a81ca 100644 --- a/site/content/en/latest/tasks/traffic/global-rate-limit.md +++ b/site/content/en/latest/tasks/traffic/global-rate-limit.md @@ -239,7 +239,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -269,7 +268,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -459,7 +457,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -489,7 +486,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -662,7 +658,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -688,7 +683,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -820,7 +814,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -870,7 +863,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: diff --git a/site/content/en/latest/tasks/traffic/http3.md b/site/content/en/latest/tasks/traffic/http3.md index b0b7c407445..cb5034284c1 100644 --- a/site/content/en/latest/tasks/traffic/http3.md +++ b/site/content/en/latest/tasks/traffic/http3.md @@ -73,7 +73,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default EOF ``` @@ -93,7 +92,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default ``` {{% /tab %}} diff --git a/site/content/en/latest/tasks/traffic/local-rate-limit.md b/site/content/en/latest/tasks/traffic/local-rate-limit.md index e7b84d06e62..a7b920db1c4 100644 --- a/site/content/en/latest/tasks/traffic/local-rate-limit.md +++ b/site/content/en/latest/tasks/traffic/local-rate-limit.md @@ -47,7 +47,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Local local: @@ -77,7 +76,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Local local: @@ -265,7 +263,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Local local: @@ -291,7 +288,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Local local: diff --git a/site/content/en/latest/tasks/traffic/retry.md b/site/content/en/latest/tasks/traffic/retry.md index 6012047dc07..25b7e2519ec 100644 --- a/site/content/en/latest/tasks/traffic/retry.md +++ b/site/content/en/latest/tasks/traffic/retry.md @@ -60,7 +60,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: backend - namespace: default retry: numRetries: 5 perRetry: @@ -92,7 +91,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: backend - namespace: default retry: numRetries: 5 perRetry: diff --git a/site/content/en/v1.1/tasks/traffic/circuit-breaker.md b/site/content/en/v1.1/tasks/traffic/circuit-breaker.md index 9480a86a2cd..d3631739549 100644 --- a/site/content/en/v1.1/tasks/traffic/circuit-breaker.md +++ b/site/content/en/v1.1/tasks/traffic/circuit-breaker.md @@ -76,7 +76,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: backend - namespace: default circuitBreaker: maxPendingRequests: 0 maxParallelRequests: 10 @@ -98,7 +97,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: backend - namespace: default circuitBreaker: maxPendingRequests: 0 maxParallelRequests: 10 diff --git a/site/content/en/v1.1/tasks/traffic/client-traffic-policy.md b/site/content/en/v1.1/tasks/traffic/client-traffic-policy.md index 37d85e5f8e1..894770116ab 100644 --- a/site/content/en/v1.1/tasks/traffic/client-traffic-policy.md +++ b/site/content/en/v1.1/tasks/traffic/client-traffic-policy.md @@ -38,7 +38,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default tcpKeepalive: idleTime: 20m interval: 60s @@ -62,7 +61,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default tcpKeepalive: idleTime: 20m interval: 60s @@ -220,7 +218,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default enableProxyProtocol: true EOF ``` @@ -241,7 +238,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default enableProxyProtocol: true ``` @@ -359,7 +355,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default clientIPDetection: xForwardedFor: numTrustedHops: 2 @@ -382,7 +377,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default clientIPDetection: xForwardedFor: numTrustedHops: 2 diff --git a/site/content/en/v1.1/tasks/traffic/connection-limit.md b/site/content/en/v1.1/tasks/traffic/connection-limit.md index aac8437dc45..55b0e005f8a 100644 --- a/site/content/en/v1.1/tasks/traffic/connection-limit.md +++ b/site/content/en/v1.1/tasks/traffic/connection-limit.md @@ -72,7 +72,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default connection: connectionLimit: value: 5 @@ -95,7 +94,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default connection: connectionLimit: value: 5 diff --git a/site/content/en/v1.1/tasks/traffic/global-rate-limit.md b/site/content/en/v1.1/tasks/traffic/global-rate-limit.md index 3f1bfa4f301..83c61861247 100644 --- a/site/content/en/v1.1/tasks/traffic/global-rate-limit.md +++ b/site/content/en/v1.1/tasks/traffic/global-rate-limit.md @@ -240,7 +240,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -270,7 +269,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -460,7 +458,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -490,7 +487,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -663,7 +659,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -689,7 +684,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Global global: @@ -820,8 +814,7 @@ spec: targetRef: group: gateway.networking.k8s.io kind: HTTPRoute - name: http-ratelimit - namespace: default + name: http-ratelimit rateLimit: type: Global global: @@ -870,8 +863,7 @@ spec: targetRef: group: gateway.networking.k8s.io kind: HTTPRoute - name: http-ratelimit - namespace: default + name: http-ratelimit rateLimit: type: Global global: diff --git a/site/content/en/v1.1/tasks/traffic/http3.md b/site/content/en/v1.1/tasks/traffic/http3.md index af95ab8ba57..4fe660ddf7e 100644 --- a/site/content/en/v1.1/tasks/traffic/http3.md +++ b/site/content/en/v1.1/tasks/traffic/http3.md @@ -74,7 +74,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default EOF ``` @@ -94,7 +93,6 @@ spec: group: gateway.networking.k8s.io kind: Gateway name: eg - namespace: default ``` {{% /tab %}} diff --git a/site/content/en/v1.1/tasks/traffic/local-rate-limit.md b/site/content/en/v1.1/tasks/traffic/local-rate-limit.md index 37fb5590a44..4284c7e4fe1 100644 --- a/site/content/en/v1.1/tasks/traffic/local-rate-limit.md +++ b/site/content/en/v1.1/tasks/traffic/local-rate-limit.md @@ -50,7 +50,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Local local: @@ -80,7 +79,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Local local: @@ -268,7 +266,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Local local: @@ -294,7 +291,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: http-ratelimit - namespace: default rateLimit: type: Local local: diff --git a/site/content/en/v1.1/tasks/traffic/retry.md b/site/content/en/v1.1/tasks/traffic/retry.md index 4de8f604f96..83429f35ed7 100644 --- a/site/content/en/v1.1/tasks/traffic/retry.md +++ b/site/content/en/v1.1/tasks/traffic/retry.md @@ -60,7 +60,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: backend - namespace: default retry: numRetries: 5 perRetry: @@ -92,7 +91,6 @@ spec: group: gateway.networking.k8s.io kind: HTTPRoute name: backend - namespace: default retry: numRetries: 5 perRetry: