@@ -79,18 +79,6 @@ type ClientSettingsPolicySpec struct {
79
79
// Support: Gateway and HTTPRoute
80
80
TargetRef gatewayv1alpha2.PolicyTargetReference ` json:"targetRef"`
81
81
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 {
94
82
// Body defines the client request body settings.
95
83
// +optional
96
84
Body *ClientBody ` json:"body,omitempty"`
@@ -100,6 +88,12 @@ type ClientSettingsPolicyConfig struct {
100
88
KeepAlive *ClientKeepAlive ` json:"keepAlive,omitempty"`
101
89
}
102
90
91
+ type ClientSettingsPolicyStatus struct {
92
+ // Conditions describe the current conditions of the ClientSettingsPolicy.
93
+ // +optional
94
+ Conditions []metav1.Condition ` json:"conditions,omitempty"`
95
+ }
96
+
103
97
// ClientBody contains the settings for the client request body.
104
98
type ClientBody struct {
105
99
// MaxSize sets the maximum allowed size of the client request body.
@@ -249,22 +243,23 @@ spec:
249
243
group: gateway.networking.k8s.io
250
244
kind: Gateway
251
245
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
262
255
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
268
263
` ` `
269
264
270
265
and the Gateway it is attached to :
0 commit comments