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

Add DualStack Support #131

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mohamed-rafraf
Copy link

What this PR does / why we need it:
This PR will allow the GCP provider for Machine Controller Manager create Virtual Machines with IPv6
Which issue(s) this PR fixes:
Fixes #829

Special notes for your reviewer:

Release note:


@mohamed-rafraf mohamed-rafraf requested review from a team as code owners September 23, 2024 09:48
@gardener-robot gardener-robot added the needs/review Needs review label Sep 23, 2024
@gardener-robot
Copy link

@mohamed-rafraf Thank you for your contribution.

@gardener-robot gardener-robot added the size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) label Sep 23, 2024
@gardener-robot-ci-2
Copy link
Contributor

Thank you @mohamed-rafraf for your contribution. Before I can start building your PR, a member of the organization must set the required label(s) {'reviewed/ok-to-test'}. Once started, you can check the build status in the PR checks section below.

Comment on lines 38 to 41
// DualStack enables the creation of machines with both IPv4 and IPv6 support.
// This allows seamless integration into modern, dual-stack network environments.
DualStack bool `json:"dualStack"`

Copy link
Contributor

Choose a reason for hiding this comment

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

MCM providers are kinda considered lower level API. So:

  • I would consider adding them to the NIC. It either way seems like for GCP the "dual stack" is part of the NIC settings.
  • I would expose them as is: meaning 2 different settings mirroring what the GCP client provides. provider-gcp can then configure it accordingly.

Comment on lines 112 to 115
if providerSpec.DualStack {
computeNIC.StackType = "IPV4_IPV6"
computeNIC.Ipv6AccessType = "EXTERNAL"
}
Copy link
Contributor

Choose a reason for hiding this comment

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

see comment above regarding the configuration.

@gardener-robot gardener-robot added the needs/changes Needs (more) changes label Sep 23, 2024
@rishabh-11
Copy link
Contributor

Hi @mohamed-rafraf, can you use https://github.com/rishabh-11/gen-crd-api-reference-docs to generate the provider-spec docs? The upstream one has a bug that has not been fixed yet. I have incorporated the fix in my fork.

@mohamed-rafraf
Copy link
Author

@rishabh-11 Thank you

@rishabh-11
Copy link
Contributor

@mohamed-rafraf can you pull the latest master branch of mcm-provider-gcp and regenerate the doc? The tpl files for gen-crd-api-doc were incorrect before.

@gardener-robot gardener-robot added size/s Size of pull request is small (see gardener-robot robot/bots/size.py) and removed size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) labels Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/changes Needs (more) changes needs/review Needs review size/s Size of pull request is small (see gardener-robot robot/bots/size.py)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support IPv6
5 participants