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

Prevent negative values for requeue times #204

Merged
merged 7 commits into from
May 3, 2022

Conversation

spilchen
Copy link
Collaborator

@spilchen spilchen commented May 2, 2022

There are two parms in the CR that allow you to control the requeue time of a controller reconciler iteration. Both of these parameters could be assigned negative values. This PR adds new rules to the webhook to prevent that.

Matt Spilchen and others added 7 commits April 27, 2022 15:30
I see this as being a common pattern, main is frozen while QA tests, but
to continue developing the operator we do new changes on vnext.  This
will become main after the next release.  To aid in testing of this
branch, all pushes to vnext will do the e2e tests now.
There are two parms in the CR that allow you to control the requeue time
of a controller reconciler iteration.  Both of these parameters could be
assigned negative values.  This PR adds new rules to the webhook to
prevent that.
@spilchen spilchen requested a review from roypaulin May 2, 2022 19:27
@spilchen spilchen self-assigned this May 2, 2022
Copy link
Collaborator

@roypaulin roypaulin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I just have one question.

@@ -890,6 +890,7 @@ func MakeVDB() *VerticaDB {
DataPath: "/data",
DepotPath: "/depot",
},
KSafety: KSafety1,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why adding this now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used the MakeVDB() function in the webhook UT. When I tried to test the successful case, where the requeue times were valid, it still complained that the kSafety was not valid. We just never set it properly, so any webhook test will complain about it.

@spilchen spilchen merged commit 498ea7b into vertica:vnext May 3, 2022
@spilchen spilchen deleted the requeue-webhook branch May 3, 2022 13:30
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.

2 participants