Skip to content

Commit

Permalink
operator/ingress: Add ELB connection idle timeout
Browse files Browse the repository at this point in the history
* operator/v1/types_ingress.go (AWSClassicLoadBalancerParameters): Add
ConnectionIdleTimeout field.
* operator/v1/0000_50_ingress-operator_00-ingresscontroller.crd.yaml:
* operator/v1/zz_generated.swagger_doc_generated.go: Regenerate.
  • Loading branch information
Miciah committed Apr 6, 2022
1 parent c689b39 commit 0d2b868
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
20 changes: 20 additions & 0 deletions operator/v1/0000_50_ingress-operator_00-ingresscontroller.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,16 @@ spec:
description: classicLoadBalancerParameters holds configuration
parameters for an AWS classic load balancer. Present
only if type is Classic.
properties:
connectionIdleTimeout:
description: connectionIdleTimeout specifies the
maximum time period that a connection may be
idle before the load balancer closes the connection. The
value must be parseable as a time duration value;
see <https://pkg.go.dev/time#ParseDuration>. The
default value for this field is 60s.
format: duration
type: string
type: object
networkLoadBalancer:
description: networkLoadBalancerParameters holds configuration
Expand Down Expand Up @@ -1398,6 +1408,16 @@ spec:
description: classicLoadBalancerParameters holds configuration
parameters for an AWS classic load balancer. Present
only if type is Classic.
properties:
connectionIdleTimeout:
description: connectionIdleTimeout specifies the
maximum time period that a connection may be
idle before the load balancer closes the connection. The
value must be parseable as a time duration value;
see <https://pkg.go.dev/time#ParseDuration>. The
default value for this field is 60s.
format: duration
type: string
type: object
networkLoadBalancer:
description: networkLoadBalancerParameters holds configuration
Expand Down
10 changes: 10 additions & 0 deletions operator/v1/types_ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,16 @@ const (
// AWSClassicLoadBalancerParameters holds configuration parameters for an
// AWS Classic load balancer.
type AWSClassicLoadBalancerParameters struct {
// connectionIdleTimeout specifies the maximum time period that a
// connection may be idle before the load balancer closes the
// connection. The value must be parseable as a time duration value;
// see <https://pkg.go.dev/time#ParseDuration>. The default value for
// this field is 60s.
//
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Format=duration
// +optional
ConnectionIdleTimeout *metav1.Duration `json:"connectionIdleTimeout"`
}

// AWSNetworkLoadBalancerParameters holds configuration parameters for an
Expand Down
7 changes: 6 additions & 1 deletion operator/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion operator/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0d2b868

Please sign in to comment.