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

controller flags for ignoreDrainFailures and drainTimeout #307

Merged
merged 3 commits into from
Oct 1, 2021
Merged

controller flags for ignoreDrainFailures and drainTimeout #307

merged 3 commits into from
Oct 1, 2021

Conversation

shreyas-badiger
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Sep 30, 2021

Codecov Report

Merging #307 (9e4fa18) into controller-v2 (4d1afe8) will decrease coverage by 0.67%.
The diff coverage is 0.00%.

Impacted file tree graph

@@                Coverage Diff                @@
##           controller-v2     #307      +/-   ##
=================================================
- Coverage          39.08%   38.40%   -0.68%     
=================================================
  Files                  7        7              
  Lines                678      690      +12     
=================================================
  Hits                 265      265              
- Misses               388      400      +12     
  Partials              25       25              
Flag Coverage Δ
unittests 38.40% <0.00%> (-0.68%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
controllers/rollingupgrade_controller.go 0.00% <ø> (ø)
controllers/upgrade.go 44.41% <0.00%> (-1.59%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4d1afe8...9e4fa18. Read the comment docs.

Signed-off-by: sbadiger <[email protected]>
@eytan-avisror
Copy link
Contributor

eytan-avisror commented Sep 30, 2021

LG, can you just add a few test cases that test the default value vs. flag vs. cr?
e.g. if CR value is nil, it should be the default flag option., if CR is value is nil & flag is provided, it should be flag value, if CR is not nil, it should be the CR value

@shreyas-badiger
Copy link
Collaborator Author

shreyas-badiger commented Sep 30, 2021

LG, can you just add a few test cases that test the default value vs. flag vs. cr? e.g. if CR value is nil, it should be the default flag option., if CR is value is nil & flag is provided, it should be flag value, if CR is not nil, it should be the CR value

Yes. It will be hard to check which one got enforced. Let me try anyway.

Signed-off-by: sbadiger <[email protected]>
Copy link
Collaborator

@shaoxt shaoxt left a comment

Choose a reason for hiding this comment

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

LGTM

@shreyas-badiger shreyas-badiger merged commit 995b81b into keikoproj:controller-v2 Oct 1, 2021
@shreyas-badiger shreyas-badiger mentioned this pull request Oct 4, 2021
shreyas-badiger added a commit that referenced this pull request Oct 4, 2021
controller flags for ignoreDrainFailures and drainTimeout (#307)
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.

3 participants