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

WIP: When using subnet discovery, you can disable the primary subnet with kubernetes.io/role/cni=0 #3121

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

ROunofF
Copy link

@ROunofF ROunofF commented Nov 22, 2024

What type of PR is this? feature

Which issue does this PR fix?: part of #3067

What does this PR do / Why do we need it?:
On initialization we check if the primary subnet is tagged with kubernetes.io/role/cni = 0 and we skip to other subnet for IP adressing.

Testing done on this change: Build on local and deploy on cluster, haven't tested all possibilities yet.

Will this PR introduce any new dependencies?: None

Will this break upgrades or downgrades? Has updating a running cluster been tested?: It was tested, there is a warning that should be posted that the value 0 now disable the feature.

Does this change require updates to the CNI daemonset config files to work?: No

Does this PR introduce any user-facing change?:

It's now possible to skip the Primary subnet by tagging it with kubernetes.io/role/cni=0 when using Enhanced Subnet Discovery.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

ROunofF and others added 8 commits October 31, 2024 11:09
* Bump sigs.k8s.io/controller-runtime from 0.19.0 to 0.19.1

Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.19.0 to 0.19.1.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](kubernetes-sigs/controller-runtime@v0.19.0...v0.19.1)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump github.com/onsi/gomega from 1.34.1 to 1.35.1

Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.34.1 to 1.35.1.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](onsi/gomega@v1.34.1...v1.35.1)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump k8s.io/api from 0.31.1 to 0.31.2

Bumps [k8s.io/api](https://github.com/kubernetes/api) from 0.31.1 to 0.31.2.
- [Commits](kubernetes/api@v0.31.1...v0.31.2)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump golang.org/x/sys from 0.25.0 to 0.26.0 in /test/agent

Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.25.0 to 0.26.0.
- [Commits](golang/sys@v0.25.0...v0.26.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [k8s.io/cli-runtime](https://github.com/kubernetes/cli-runtime) from 0.30.2 to 0.31.2.
- [Commits](kubernetes/cli-runtime@v0.30.2...v0.31.2)

---
updated-dependencies:
- dependency-name: k8s.io/cli-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update to Changelog, config and scripts.

* Add Version in Changelog.

Co-authored-by: Senthil Kumaran <[email protected]>
Added unit test
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.

4 participants