Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(kumactl) backoff durations validation #1352

Merged

Conversation

bartsmykla
Copy link
Contributor

There were two bugs, one was happening when there was only seconds in
timeout durations provided (1s) as the validator was not checking if
seconds are provided and assuming that if nanoseconds field is empty, it
means the value is equal 0 and then rejecting valid values.

The second bug was that we were not validating maxInterval values of
the backOff properties

There were two bugs, one was happening when there was only seconds in
timeout durations provided (`1s`) as the validator was not checking if
seconds are provided and assuming that if nanoseconds field is empty, it
means the value is equal 0 and then rejecting valid values.

The second bug was that we were not validating `maxInterval` values of
the backOff properties

Signed-off-by: Bart Smykla <bartek@smykla.com>
@bartsmykla bartsmykla requested a review from a team as a code owner December 22, 2020 17:27
@bartsmykla bartsmykla merged commit a7c1f39 into kumahq:master Dec 22, 2020
@bartsmykla bartsmykla deleted the fix/backoff-duration-validation branch December 22, 2020 18:24
mergify bot pushed a commit that referenced this pull request Dec 22, 2020
There were two bugs, one was happening when there was only seconds in
timeout durations provided (`1s`) as the validator was not checking if
seconds are provided and assuming that if nanoseconds field is empty, it
means the value is equal 0 and then rejecting valid values.

The second bug was that we were not validating `maxInterval` values of
the backOff properties

Signed-off-by: Bart Smykla <bartek@smykla.com>
(cherry picked from commit a7c1f39)
nickolaev pushed a commit that referenced this pull request Dec 22, 2020
There were two bugs, one was happening when there was only seconds in
timeout durations provided (`1s`) as the validator was not checking if
seconds are provided and assuming that if nanoseconds field is empty, it
means the value is equal 0 and then rejecting valid values.

The second bug was that we were not validating `maxInterval` values of
the backOff properties

Signed-off-by: Bart Smykla <bartek@smykla.com>
(cherry picked from commit a7c1f39)

Co-authored-by: Bart Smykla <bartek@smykla.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants