8000 stop service update when disable svclb flag is passed by galal-hussein · Pull Request #543 · k3s-io/k3s · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

stop service update when disable svclb flag is passed #543

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

Merged
merged 1 commit into from
Jun 18, 2019

Conversation

galal-hussein
Copy link
Contributor

@galal-hussein galal-hussein force-pushed the stop_svclb_controller branch from 8bad267 to 94b5a22 Compare June 18, 2019 21:05
@galal-hussein galal-hussein changed the title Disable the svclb controller nodeploy for svclb is passed stop service update when disable svclb flag is passed Jun 18, 2019
@erikwilson
Copy link
Contributor

LGTM, thanks!

@evrardjp
Copy link
Contributor

While this probably fixes the problem, no tests were added to ensure this doesn't happen again.

There are two ways to do this, either we start having functional testing of metallb (nice but will require a certain time investment), or we add a unit test for this. It can totally be done in another PR, though.

Copy link
Contributor
@evrardjp evrardjp left a comment

Choose a reason for hiding this comment

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

Excuse me for my noobness here... I am also curious about this patch, shouldn't we ensure that the svclb controller is not deployed in the first place when the flag is passed, rather than update locally things in the controller itself? It would be easier to write unit tests to test if something isn't present/running vs testing its behaviour? Or do you mean we always have to bundle the two, and make sure one is disabled this way?

@erikwilson
Copy link
Contributor

Great questions @evrardjp ! Originally the fix was setup not to register the controller if the flag is present but it looked liked we might want the current change for maintenance purposes since the controller was already being passed an enabled flag. There is probably some more manual testing that can be done to ensure the behavior is correct and related code cleanup if necessary.

We definitely need and are planning to write automated tests for all of the k3s features, but still coming up with a test plan on how that will work.

@evrardjp
Copy link
Contributor

Originally the fix was setup not to register the controller if the flag is present but it looked liked we might want the current change for maintenance purposes since the controller was already being passed an enabled flag.

That's what I guessed. Thanks for clarifying :)

There is probably some more manual testing that can be done to ensure the behavior is correct and related code cleanup if necessary.

I will try to track this not this week-end but the one afterwards. Don't hesitate to ping me if you need a manual tester on this. It would until there is a plan for the automated testing, of course ;)

@evrardjp
Copy link
Contributor

I have completely let that slip. I don't see an issue to explain the plan for testing, will it be documented there?

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
0