Skip to content

Commit

Permalink
fix: remove namespace in policies
Browse files Browse the repository at this point in the history
Signed-off-by: bitliu <[email protected]>
  • Loading branch information
Xunzhuo committed Jul 24, 2024
1 parent 8ec0b71 commit 329a7dc
Show file tree
Hide file tree
Showing 21 changed files with 4 additions and 82 deletions.
2 changes: 0 additions & 2 deletions site/content/en/docs/tasks/traffic/circuit-breaker.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: backend
namespace: default
circuitBreaker:
maxPendingRequests: 0
maxParallelRequests: 10
Expand All @@ -98,7 +97,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: backend
namespace: default
circuitBreaker:
maxPendingRequests: 0
maxParallelRequests: 10
Expand Down
6 changes: 0 additions & 6 deletions site/content/en/docs/tasks/traffic/client-traffic-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
tcpKeepalive:
idleTime: 20m
interval: 60s
Expand All @@ -62,7 +61,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
tcpKeepalive:
idleTime: 20m
interval: 60s
Expand Down Expand Up @@ -220,7 +218,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
enableProxyProtocol: true
EOF
```
Expand All @@ -241,7 +238,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
enableProxyProtocol: true
```
Expand Down Expand Up @@ -359,7 +355,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
clientIPDetection:
xForwardedFor:
numTrustedHops: 2
Expand All @@ -382,7 +377,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
clientIPDetection:
xForwardedFor:
numTrustedHops: 2
Expand Down
2 changes: 0 additions & 2 deletions site/content/en/docs/tasks/traffic/connection-limit.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
connection:
connectionLimit:
value: 5
Expand All @@ -95,7 +94,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
connection:
connectionLimit:
value: 5
Expand Down
12 changes: 2 additions & 10 deletions site/content/en/docs/tasks/traffic/global-rate-limit.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: http-ratelimit
namespace: default
rateLimit:
type: Global
global:
Expand Down Expand Up @@ -270,7 +269,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: http-ratelimit
namespace: default
rateLimit:
type: Global
global:
Expand Down Expand Up @@ -460,7 +458,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: http-ratelimit
namespace: default
rateLimit:
type: Global
global:
Expand Down Expand Up @@ -490,7 +487,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: http-ratelimit
namespace: default
rateLimit:
type: Global
global:
Expand Down Expand Up @@ -663,7 +659,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: http-ratelimit
namespace: default
rateLimit:
type: Global
global:
Expand All @@ -689,7 +684,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: http-ratelimit
namespace: default
rateLimit:
type: Global
global:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions site/content/en/docs/tasks/traffic/http3.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
EOF
```

Expand All @@ -94,7 +93,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
```
{{% /tab %}}
Expand Down
4 changes: 0 additions & 4 deletions site/content/en/docs/tasks/traffic/local-rate-limit.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: http-ratelimit
namespace: default
rateLimit:
type: Local
local:
Expand Down Expand Up @@ -80,7 +79,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: http-ratelimit
namespace: default
rateLimit:
type: Local
local:
Expand Down Expand Up @@ -268,7 +266,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: http-ratelimit
namespace: default
rateLimit:
type: Local
local:
Expand All @@ -294,7 +291,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: http-ratelimit
namespace: default
rateLimit:
type: Local
local:
Expand Down
2 changes: 0 additions & 2 deletions site/content/en/docs/tasks/traffic/retry.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: backend
namespace: default
retry:
numRetries: 5
perRetry:
Expand Down Expand Up @@ -92,7 +91,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: backend
namespace: default
retry:
numRetries: 5
perRetry:
Expand Down
2 changes: 0 additions & 2 deletions site/content/en/latest/tasks/traffic/circuit-breaker.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: backend
namespace: default
circuitBreaker:
maxPendingRequests: 0
maxParallelRequests: 10
Expand All @@ -99,7 +98,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: backend
namespace: default
circuitBreaker:
maxPendingRequests: 0
maxParallelRequests: 10
Expand Down
6 changes: 0 additions & 6 deletions site/content/en/latest/tasks/traffic/client-traffic-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
tcpKeepalive:
idleTime: 20m
interval: 60s
Expand All @@ -60,7 +59,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
tcpKeepalive:
idleTime: 20m
interval: 60s
Expand Down Expand Up @@ -218,7 +216,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
enableProxyProtocol: true
EOF
```
Expand All @@ -239,7 +236,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
enableProxyProtocol: true
```
Expand Down Expand Up @@ -357,7 +353,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
clientIPDetection:
xForwardedFor:
numTrustedHops: 2
Expand All @@ -380,7 +375,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
clientIPDetection:
xForwardedFor:
numTrustedHops: 2
Expand Down
2 changes: 0 additions & 2 deletions site/content/en/latest/tasks/traffic/connection-limit.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
connection:
connectionLimit:
value: 5
Expand All @@ -95,7 +94,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
connection:
connectionLimit:
value: 5
Expand Down
8 changes: 0 additions & 8 deletions site/content/en/latest/tasks/traffic/global-rate-limit.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: http-ratelimit
namespace: default
rateLimit:
type: Global
global:
Expand Down Expand Up @@ -269,7 +268,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: http-ratelimit
namespace: default
rateLimit:
type: Global
global:
Expand Down Expand Up @@ -459,7 +457,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: http-ratelimit
namespace: default
rateLimit:
type: Global
global:
Expand Down Expand Up @@ -489,7 +486,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: http-ratelimit
namespace: default
rateLimit:
type: Global
global:
Expand Down Expand Up @@ -662,7 +658,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: http-ratelimit
namespace: default
rateLimit:
type: Global
global:
Expand All @@ -688,7 +683,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: http-ratelimit
namespace: default
rateLimit:
type: Global
global:
Expand Down Expand Up @@ -820,7 +814,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: http-ratelimit
namespace: default
rateLimit:
type: Global
global:
Expand Down Expand Up @@ -870,7 +863,6 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: http-ratelimit
namespace: default
rateLimit:
type: Global
global:
Expand Down
2 changes: 0 additions & 2 deletions site/content/en/latest/tasks/traffic/http3.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
EOF
```

Expand All @@ -93,7 +92,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: eg
namespace: default
```
{{% /tab %}}
Expand Down
Loading

0 comments on commit 329a7dc

Please sign in to comment.