Skip to content

Commit 10fe278

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 19a0a30 commit 10fe278

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

pkg/apis/configuration/v1/types.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,15 @@ type Upstream struct {
178178

179179
// UpstreamBuffers defines Buffer Configuration for an Upstream.
180180
type UpstreamBuffers struct {
181-
// Configures the number of buffers. The default is set in the proxy-buffers ConfigMap key.
181+
// Configures the number of buffers. The default is set in the proxy-buffers ConfigMap key.
182182
Number int `json:"number"`
183-
// Configures the size of a buffer. The default is set in the proxy-buffers ConfigMap key.
183+
// Configures the size of a buffer. The default is set in the proxy-buffers ConfigMap key.
184184
Size string `json:"size"`
185185
}
186186

187187
// UpstreamTLS defines a TLS configuration for an Upstream.
188188
type UpstreamTLS struct {
189-
// Enables HTTPS for requests to upstream servers. The default is False , meaning that HTTP will be used. Note: by default, NGINX will not verify the upstream server certificate. To enable the verification, configure an EgressMTLS Policy.
189+
// Enables HTTPS for requests to upstream servers. The default is False , meaning that HTTP will be used. Note: by default, NGINX will not verify the upstream server certificate. To enable the verification, configure an EgressMTLS Policy.
190190
Enable bool `json:"enable"`
191191
}
192192

@@ -232,9 +232,9 @@ type HealthCheck struct {
232232

233233
// Header defines an HTTP Header.
234234
type Header struct {
235-
// The name of the header.
235+
// The name of the header.
236236
Name string `json:"name"`
237-
// The value of the header.
237+
// The value of the header.
238238
Value string `json:"value"`
239239
}
240240

@@ -347,7 +347,7 @@ type ProxyResponseHeaders struct {
347347
// AddHeader defines an HTTP Header with an optional Always field to use with the add_header NGINX directive.
348348
type AddHeader struct {
349349
Header `json:",inline"`
350-
// If set to true, add the header regardless of the response status code**. Default is false. See the add_header directive for more information.
350+
// If set to true, add the header regardless of the response status code**. Default is false. See the add_header directive for more information.
351351
Always bool `json:"always"`
352352
}
353353

@@ -546,7 +546,7 @@ type GlobalConfiguration struct {
546546
metav1.TypeMeta `json:",inline"`
547547
metav1.ObjectMeta `json:"metadata,omitempty"`
548548
// spec field of the GlobalConfiguration resource
549-
Spec GlobalConfigurationSpec `json:"spec"`
549+
Spec GlobalConfigurationSpec `json:"spec"`
550550
}
551551

552552
// GlobalConfigurationSpec is the spec of the GlobalConfiguration resource.
@@ -606,19 +606,19 @@ type TransportServer struct {
606606

607607
// TransportServerSpec is the spec of the TransportServer resource.
608608
type TransportServerSpec struct {
609-
// Specifies which Ingress Controller must handle the VirtualServer resource.
609+
// Specifies which Ingress Controller must handle the VirtualServer resource.
610610
IngressClass string `json:"ingressClassName"`
611-
// The TLS termination configuration.
611+
// The TLS termination configuration.
612612
TLS *TransportServerTLS `json:"tls"`
613-
// Sets a custom HTTP and/or HTTPS listener. Valid fields are listener.http and listener.https. Each field must reference the name of a valid listener defined in a GlobalConfiguration resource
613+
// Sets a custom HTTP and/or HTTPS listener. Valid fields are listener.http and listener.https. Each field must reference the name of a valid listener defined in a GlobalConfiguration resource
614614
Listener TransportServerListener `json:"listener"`
615615
// Sets a custom snippet in server context. Overrides the server-snippets ConfigMap key.
616616
ServerSnippets string `json:"serverSnippets"`
617617
// Sets a custom snippet in the stream context. Overrides the stream-snippets ConfigMap key.
618618
StreamSnippets string `json:"streamSnippets"`
619-
// The host (domain name) of the server. Must be a valid subdomain as defined in RFC 1123, such as my-app or hello.example.com. When using a wildcard domain like *.example.com the domain must be contained in double quotes. The host value needs to be unique among all Ingress and VirtualServer resources. See also Handling Host and Listener Collisions.
619+
// The host (domain name) of the server. Must be a valid subdomain as defined in RFC 1123, such as my-app or hello.example.com. When using a wildcard domain like *.example.com the domain must be contained in double quotes. The host value needs to be unique among all Ingress and VirtualServer resources. See also Handling Host and Listener Collisions.
620620
Host string `json:"host"`
621-
// A list of upstreams.
621+
// A list of upstreams.
622622
Upstreams []TransportServerUpstream `json:"upstreams"`
623623
// The UpstreamParameters are set on stream context
624624
UpstreamParameters *UpstreamParameters `json:"upstreamParameters"`
@@ -635,9 +635,9 @@ type TransportServerTLS struct {
635635

636636
// TransportServerListener defines a listener for a TransportServer.
637637
type TransportServerListener struct {
638-
// The name of a listener defined in a GlobalConfiguration resource.
638+
// The name of a listener defined in a GlobalConfiguration resource.
639639
Name string `json:"name"`
640-
// The protocol of the listener.
640+
// The protocol of the listener.
641641
Protocol string `json:"protocol"`
642642
}
643643

@@ -802,7 +802,7 @@ type PolicySpec struct {
802802
type PolicyList struct {
803803
metav1.TypeMeta `json:",inline"`
804804
metav1.ListMeta `json:"metadata"`
805-
805+
806806
// Items field of the PolicyList resource
807807
Items []Policy `json:"items"`
808808
}

0 commit comments

Comments
 (0)