Skip to content

Commit 4790417

Browse files
committed
OCPBUGS-61858: Use pointer type for HTTPKeepAliveTimeout in IngressController API
This commit addresses the problem of the creation of the default IngressController without `HTTPKeepAliveTimeout` tuning option by the cluster ingress operator: "IngressController.operator.openshift.io \"default\" is invalid: spec.tuningOptions.httpKeepAliveTimeout: Invalid value: \"string\": httpKeepAliveTimeout must be greater than or equal to 1 millisecond"
1 parent bf434fb commit 4790417

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

operator/v1/types_ingress.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1898,7 +1898,7 @@ type IngressControllerTuningOptions struct {
18981898
// +kubebuilder:validation:MinLength=1
18991899
// +kubebuilder:validation:MaxLength=16
19001900
// +optional
1901-
HTTPKeepAliveTimeout metav1.Duration `json:"httpKeepAliveTimeout,omitempty"`
1901+
HTTPKeepAliveTimeout *metav1.Duration `json:"httpKeepAliveTimeout,omitempty"`
19021902

19031903
// tlsInspectDelay defines how long the router can hold data to find a
19041904
// matching route.

operator/v1/zz_generated.deepcopy.go

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)