Skip to content

Commit 119d8cc

Browse files
author
Kate Osborn
committed
Fixes for go API
1 parent 48d2bcb commit 119d8cc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/proposals/client-settings.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ type ClientSettingsPolicySpec struct {
8888
type ClientSettingsPolicyStatus struct {
8989
// Conditions describe the current conditions of the ClientSettingsPolicy
9090
// +optional
91-
Conditions []metav1.Condition
91+
Conditions []metav1.Condition `json:"conditions,omitempty"`
9292
}
9393

9494
type ClientSettingsPolicyConfig struct {
@@ -128,15 +128,16 @@ type KeepAlive struct {
128128
Disable *DisableType `json:"disable"`
129129
}
130130

131+
// KeepAliveTimeout defines the timeouts related to keep-alive client connections.
131132
type KeepAliveTimeout struct {
132133
// ServerTimeout sets the timeout during which a keep-alive client connection will stay open on the server side.
133134
// The zero value disables keep-alive client connections.
134135
// +optional
135-
ServerTimeout *Duration
136+
ServerTimeout *Duration `json:"serverTimeout,omitempty"`
136137

137138
// HeaderTimeout sets the timeout in the "Keep-Alive: timeout=time" response header field.
138139
// +optional
139-
HeaderTimeout *Duration
140+
HeaderTimeout *Duration `json:"headerTimeout,omitempty"`
140141
}
141142

142143
// DisableType is the type of browsers to disable keep-alive connections on.

0 commit comments

Comments
 (0)