CNV-37382: Inconsistency between the cluster settings and VM settings for SSH over LoadBalancer #1745
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Description
This bug is introducing a few problematic behaviors:
Under Overview > Settings > Cluster > General settings > SSH configurations we have a switch to toggle the option of SSH over LB inside the VM's Configuration > SSH tab. If the metalLB operator is installed, the option inside the VM is always selectable no matter what state the switch has.
If the metalLB operator was installed in the cluster, then uninstalled, we still show as the operator is installed (the ssh over LB inside the VM is still selectable
The solution includes a tighter check if metalLB is installed, and if so we disable the switch as on.
🎥 Demo
###Before:
After:
MetalLB is installed:
MetalLB is NOT installed:
switch is on:
switch is off: