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

[FEATURE REQUEST] Skip install of MetalLB #172

Closed
MegaShinySnivy opened this issue Dec 4, 2022 · 12 comments
Closed

[FEATURE REQUEST] Skip install of MetalLB #172

MegaShinySnivy opened this issue Dec 4, 2022 · 12 comments
Labels
enhancement New feature or request

Comments

@MegaShinySnivy
Copy link

Some people (read: I) would like to install and manage MetalLB separately from this playbook, that way I can do things like install MetalLB in BGP mode. While I can delete the MetalLB and install it from Helm afterward, it would be nice to skip the original install so it doesn't leave extra noise behind. Having an option in the all.yml, maybe something where if you leave the MetalLB IP range blank it skips the install entirely, would be nice.

@timothystewart6 timothystewart6 added the enhancement New feature or request label Dec 5, 2022
@timothystewart6
Copy link
Contributor

Discussion supporting another use case for making it optional #174

@timothystewart6
Copy link
Contributor

Also, if we are to do this we would also need to expand our tests to include this.

@MegaShinySnivy
Copy link
Author

That should be pretty simple, use the existing test and skip the metalLB test section when testing this functionality, or optionally use the existing metalLB test and invert the pass condition.

@irish1986
Copy link
Contributor

I have create PR #191 which splits into individual task that are included on run time for add-on such kube-vip, metallb and so on. We could expend on this and add flag to skip those steps if it get merge back to master. Going with a modular approach could be useful given we all have unique homelab and needs.

@MegaShinySnivy
Copy link
Author

Ooh, I quite like that approach. Leaving it up to the user to decide which parts are required.

@irish1986
Copy link
Contributor

I will amend my PR later next week to check if the service_version_tag is defined and have ansible include those task when variable exist.

So if you want to skip metallb install, you could just change the tag to be empty. I haven't done any of this work but that how I figured out it could be the easiest to implement. Obviously I will need to document this.

@MegaShinySnivy
Copy link
Author

Also, something I notice is that this playbook still uses a configmap to manage MetalLB, something that isn't supported as of Version 0.13.2. Should I make another issue to address that?

@irish1986
Copy link
Contributor

Should I make another issue to address that?

I would suggest you could make a Pull Request to propose those changes you want to include. If you know what needs to change and include metallb doc related to those changes in the configuration it should be easy to review and get accepted.

If you have never made a PR, there are plenty of good tutorials online but given the details of your suggestion I think you should be fine.

@MegaShinySnivy
Copy link
Author

MegaShinySnivy commented Jan 3, 2023

That's the issue, I don't know what needs to be changed, only that you have to use CRDs and that ConfigMaps are dead. Someone far smarter than I will have to make that PR 😅

@irish1986
Copy link
Contributor

to use CRDs and that ConfigMaps are dead

I looked into the Backward Compatibility and could figure out what is wrong in the current way of doing things ? Can you elaborate a bit more ?

@MegaShinySnivy
Copy link
Author

Ah. You see, I made one of the classic blunders, and got my projects confused. Please ignore my comment on configmaps!

@timothystewart6
Copy link
Contributor

closed by #383

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants