Skip to content

Commit

Permalink
Update proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-osborn committed Apr 4, 2024
1 parent df0566b commit 1ba2028
Showing 1 changed file with 22 additions and 27 deletions.
49 changes: 22 additions & 27 deletions docs/proposals/client-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,6 @@ type ClientSettingsPolicySpec struct {
// Support: Gateway and HTTPRoute
TargetRef gatewayv1alpha2.PolicyTargetReference `json:"targetRef"`

// Default defines default policy configuration for the targeted resource.
// +optional
Default *ClientSettingsPolicyConfig `json:"default,omitempty"`
}

type ClientSettingsPolicyStatus struct {
// Conditions describe the current conditions of the ClientSettingsPolicy.
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
}

type ClientSettingsPolicyConfig struct {
// Body defines the client request body settings.
// +optional
Body *ClientBody `json:"body,omitempty"`
Expand All @@ -100,6 +88,12 @@ type ClientSettingsPolicyConfig struct {
KeepAlive *ClientKeepAlive `json:"keepAlive,omitempty"`
}

type ClientSettingsPolicyStatus struct {
// Conditions describe the current conditions of the ClientSettingsPolicy.
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
}

// ClientBody contains the settings for the client request body.
type ClientBody struct {
// MaxSize sets the maximum allowed size of the client request body.
Expand Down Expand Up @@ -249,22 +243,23 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
name: example-gateway
default:
body:
maxSize: 10m
timeout: 30s
keepAlive:
requests: 100
time: 5m
timeout:
server: 2m
header: 1m
body:
maxSize: 10m
timeout: 30s
keepAlive:
requests: 100
time: 5m
timeout:
server: 2m
header: 1m
status:
conditions:
- type: Accepted
status: "True"
reason: Accepted
message: Policy is accepted
controllers:
- controllerName: "gateway.nginx.org/nginx-gateway-controller"
conditions:
- type: Accepted
status: "True"
reason: Accepted
message: Policy is accepted
```

and the Gateway it is attached to:
Expand Down

0 comments on commit 1ba2028

Please sign in to comment.