Skip to content

feat: Define ServiceLoadBalancer Configuration API #763

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

Conversation

dlipovetsky
Copy link
Contributor

What problem does this PR solve?:

Which issue(s) this PR fixes:
Fixes #

How Has This Been Tested?:

Special notes for your reviewer:

- Require at least one element in AddressRanges.
- Add omitempty to Configuration JSON struct tag.
@dlipovetsky
Copy link
Contributor Author

Replaced by #778 because this is from a public fork, and can't run some of the required checks.

@dlipovetsky dlipovetsky closed this Jul 3, 2024
dlipovetsky added a commit that referenced this pull request Jul 3, 2024
**What problem does this PR solve?**:
This adds an optional configuration for the ServiceLoadBalancer Addon,
consisting of one or more IPv4 address ranges, e.g.,

```yaml
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
  name: <NAME>
spec:
  topology:
    variables:
      - name: clusterConfig
        value:
          addons:
            serviceLoadBalancer:
              provider: MetalLB
              configuration:
                addressRanges:
                - start: 10.100.1.1
                  end: 10.100.1.20
                - start: 10.100.1.51
                  end: 10.100.1.70
```

(This is a copy of
#763.
I had to close that after
#755
added required checks that can't be run from PRs from public forks. )

**Which issue(s) this PR fixes**:
Fixes #

**How Has This Been Tested?**:
<!--
Please describe the tests that you ran to verify your changes.
Provide output from the tests and any manual steps needed to replicate
the tests.
-->

**Special notes for your reviewer**:
<!--
Use this to provide any additional information to the reviewers.
This may include:
- Best way to review the PR.
- Where the author wants the most review attention on.
- etc.
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants