Skip to content

Commit 1ba2028

Browse files
author
Kate Osborn
committed
Update proposal
1 parent df0566b commit 1ba2028

File tree

1 file changed

+22
-27
lines changed

1 file changed

+22
-27
lines changed

docs/proposals/client-settings.md

+22-27
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,6 @@ type ClientSettingsPolicySpec struct {
7979
// Support: Gateway and HTTPRoute
8080
TargetRef gatewayv1alpha2.PolicyTargetReference `json:"targetRef"`
8181

82-
// Default defines default policy configuration for the targeted resource.
83-
// +optional
84-
Default *ClientSettingsPolicyConfig `json:"default,omitempty"`
85-
}
86-
87-
type ClientSettingsPolicyStatus struct {
88-
// Conditions describe the current conditions of the ClientSettingsPolicy.
89-
// +optional
90-
Conditions []metav1.Condition `json:"conditions,omitempty"`
91-
}
92-
93-
type ClientSettingsPolicyConfig struct {
9482
// Body defines the client request body settings.
9583
// +optional
9684
Body *ClientBody `json:"body,omitempty"`
@@ -100,6 +88,12 @@ type ClientSettingsPolicyConfig struct {
10088
KeepAlive *ClientKeepAlive `json:"keepAlive,omitempty"`
10189
}
10290

91+
type ClientSettingsPolicyStatus struct {
92+
// Conditions describe the current conditions of the ClientSettingsPolicy.
93+
// +optional
94+
Conditions []metav1.Condition `json:"conditions,omitempty"`
95+
}
96+
10397
// ClientBody contains the settings for the client request body.
10498
type ClientBody struct {
10599
// MaxSize sets the maximum allowed size of the client request body.
@@ -249,22 +243,23 @@ spec:
249243
group: gateway.networking.k8s.io
250244
kind: Gateway
251245
name: example-gateway
252-
default:
253-
body:
254-
maxSize: 10m
255-
timeout: 30s
256-
keepAlive:
257-
requests: 100
258-
time: 5m
259-
timeout:
260-
server: 2m
261-
header: 1m
246+
body:
247+
maxSize: 10m
248+
timeout: 30s
249+
keepAlive:
250+
requests: 100
251+
time: 5m
252+
timeout:
253+
server: 2m
254+
header: 1m
262255
status:
263-
conditions:
264-
- type: Accepted
265-
status: "True"
266-
reason: Accepted
267-
message: Policy is accepted
256+
controllers:
257+
- controllerName: "gateway.nginx.org/nginx-gateway-controller"
258+
conditions:
259+
- type: Accepted
260+
status: "True"
261+
reason: Accepted
262+
message: Policy is accepted
268263
```
269264

270265
and the Gateway it is attached to:

0 commit comments

Comments
 (0)