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

use first load balancer class as default if no class with name "default" provided #74

Merged
merged 1 commit into from
May 13, 2020

Conversation

MartinWeindel
Copy link
Member

Co-authored-by: Uwe Krueger uwe.krueger@sap.com

What this PR does / why we need it:
If multiple load balancer classes are defined in a floating pool of the cloud profile constraints, currently the default class must be named "default". If no "default" LB class is provided, the Openstack CCM chooses one by random. With this PR the first load balancer class is used instead.
Additionally it is ensured that the floating network ID from the infrastructure is used for all LB classes.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

If a floating pool in the cloud profile defines no load balancer class named "default", the first one is used as default.

@MartinWeindel MartinWeindel requested review from a team as code owners May 13, 2020 12:03
@gardener-robot-ci-3 gardener-robot-ci-3 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label May 13, 2020
@gardener-robot-ci-2 gardener-robot-ci-2 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels May 13, 2020
Copy link
Member

@afritzler afritzler 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. But we need to adjust the test case https://github.com/gardener/gardener-extension-provider-openstack/blob/master/pkg/controller/controlplane/valuesprovider_test.go#L321-L324 since we now always have the FloatingNetworkID in the config spec.

…th name default provided

Co-authored-by: Uwe Krueger <uwe.krueger@sap.com>
@gardener-robot-ci-2 gardener-robot-ci-2 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels May 13, 2020
Copy link
Member

@afritzler afritzler left a comment

Choose a reason for hiding this comment

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

lgtm

@mandelsoft mandelsoft merged commit 9ca54d9 into master May 13, 2020
@rfranzke rfranzke deleted the default-floatingip-subnet branch May 13, 2020 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants