-
Bug
-
Resolution: Won't Do
-
Undefined
-
None
-
4.14
-
None
-
Low
-
No
-
Rejected
-
False
-
-
Done
Description of problem:
I just fixed an issue in clipHAProxyTimeout in OCPBUGS-6958, but we have a modified copy of it: https://github.com/openshift/cluster-ingress-operator/blob/master/pkg/operator/controller/ingress/deployment.go#L1610 In addition, we convert fractionated values for env variables using durationToHAProxyTimespc, but not for annotations. Should we fix the same issues and use durationToHAProxyTimespec for annotations as well as environment variables? Pros: remove overflow bug, and consistent formatting of environment variables and annotation values Cons: may introduce upgrade issues
Version-Release number of selected component (if applicable):
4.14
How reproducible:
See ocpbugs-6958
Steps to Reproduce:
1. n/a 2. 3.
Actual results:
n/a
Expected results:
n/a
Additional info:
We apply the router package clipHAProxyTimeout to at least one env variable in the template, ROUTER_HARD_STOP_AFTER. For all the other env variables, we use durationToHAProxyTimespec , https://github.com/openshift/cluster-ingress-operator/blob/master/pkg/operator/controller/ingress/deployment.go#L1653 The latter will convert fractionated values into the appropriate format, like the test in https://github.com/openshift/cluster-ingress-operator/blob/master/pkg/operator/controller/ingress/deployment_test.go#L1773 shows.
- is related to
-
OCPBUGS-6958 Route 'haproxy.router.openshift.io/timeout' value is not validated
- Closed