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

Create IPv6 ServiceCIDR and write IPv6 ranges to Infra.Status.Networking #1081

Merged
merged 6 commits into from
Oct 15, 2024

Conversation

axel7born
Copy link
Contributor

@axel7born axel7born commented Oct 10, 2024

How to categorize this PR?

/area networking
/kind enhancement
/platform aws

What this PR does / why we need it:
Create an IPv6 CIDR reservation for the first nodes subnet that we find, use it as Service CIDR and write it to Infra.Status.Networking.
The CIDR of the VPC will be used as Node range and Pod range and written to Infra.Status.Networking.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

Create IPv6 ServiceCIDR and write IPv6 ranges to Infra.Status.Networking

@axel7born axel7born requested review from a team as code owners October 10, 2024 07:38
@gardener-robot gardener-robot added the platform/aws Amazon web services platform/infrastructure label Oct 10, 2024
@gardener-robot
Copy link

@axel7born Labels area/todo, kind/todo do not exist.

@gardener-robot gardener-robot added needs/review Needs review size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) labels Oct 10, 2024
@gardener-robot-ci-1 gardener-robot-ci-1 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 Oct 10, 2024
@gardener-robot gardener-robot added area/networking Networking related kind/enhancement Enhancement, improvement, extension labels Oct 10, 2024
@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 Oct 10, 2024
@axel7born axel7born force-pushed the ipv6-service-cidr-pr branch from 28f9410 to 4cc8bda Compare October 10, 2024 07:45
@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 Oct 10, 2024
@axel7born axel7born force-pushed the ipv6-service-cidr-pr branch from 4cc8bda to 6ddb1c3 Compare October 10, 2024 07:48
@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 Oct 10, 2024
@axel7born axel7born force-pushed the ipv6-service-cidr-pr branch from 6ddb1c3 to 60b3046 Compare October 10, 2024 07:51
@gardener-robot-ci-1 gardener-robot-ci-1 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 Oct 10, 2024
@axel7born axel7born marked this pull request as draft October 10, 2024 08:44
@ScheererJ ScheererJ mentioned this pull request Oct 10, 2024
58 tasks
@axel7born axel7born force-pushed the ipv6-service-cidr-pr branch from 60b3046 to 4085b14 Compare October 10, 2024 12:39
@gardener-robot-ci-1 gardener-robot-ci-1 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 Oct 10, 2024
@axel7born axel7born marked this pull request as ready for review October 10, 2024 12:40
@gardener-robot-ci-1 gardener-robot-ci-1 removed 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 Oct 10, 2024
@gardener-robot-ci-2 gardener-robot-ci-2 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 Oct 10, 2024
@gardener-robot-ci-1 gardener-robot-ci-1 removed 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 Oct 10, 2024
@ScheererJ
Copy link
Member

/test

@testmachinery
Copy link

testmachinery bot commented Oct 10, 2024

Testrun: e2e-996mj
Workflow: e2e-996mj-wf
Phase: Failed

+---------------------+-----------------------------+-----------+----------+
|        NAME         |            STEP             |   PHASE   | DURATION |
+---------------------+-----------------------------+-----------+----------+
| infrastructure-test | infrastructure-test-recover | Failed    | 27m1s    |
| bastion-test        | bastion-test                | Succeeded | 8m46s    |
| dnsrecord-test      | dnsrecord-test              | Succeeded | 6m9s     |
| infrastructure-test | infrastructure-test-tf      | Succeeded | 35m39s   |
| infrastructure-test | infrastructure-test-flow    | Succeeded | 27m57s   |
| infrastructure-test | infrastructure-test-migrate | Succeeded | 30m58s   |
+---------------------+-----------------------------+-----------+----------+

@gardener-robot-ci-1 gardener-robot-ci-1 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 Oct 11, 2024
@ScheererJ
Copy link
Member

/test

@testmachinery
Copy link

testmachinery bot commented Oct 11, 2024

Testrun: e2e-8dt5q
Workflow: e2e-8dt5q-wf
Phase: Succeeded

+---------------------+-----------------------------+-----------+----------+
|        NAME         |            STEP             |   PHASE   | DURATION |
+---------------------+-----------------------------+-----------+----------+
| infrastructure-test | infrastructure-test-flow    | Succeeded | 27m10s   |
| bastion-test        | bastion-test                | Succeeded | 8m48s    |
| dnsrecord-test      | dnsrecord-test              | Succeeded | 5m52s    |
| infrastructure-test | infrastructure-test-tf      | Succeeded | 34m22s   |
| infrastructure-test | infrastructure-test-migrate | Succeeded | 30m44s   |
| infrastructure-test | infrastructure-test-recover | Succeeded | 25m23s   |
+---------------------+-----------------------------+-----------+----------+

AndreasBurger
AndreasBurger previously approved these changes Oct 14, 2024
Copy link
Member

@AndreasBurger AndreasBurger left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@hebelsan hebelsan left a comment

Choose a reason for hiding this comment

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

Mostly lgtm

}
var cidrs []string
for _, cidrReservation := range output.SubnetIpv6CidrReservations {
cidrs = append(cidrs, *cidrReservation.Cidr)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we be sure that there won't be a nil pointer dereference?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, It would be weird to get an array containing nil values and a CIDRReservation without a Cidr would also be strange. What should I check for nil? cidrReservation, cidr or both?

Copy link
Contributor

Choose a reason for hiding this comment

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

You are right, it would be pretty unusual.
But I think we're better safe than sorry, so I vote for adding a check for both cidrReservation and cidrReservation.Cidr.

pkg/controller/infrastructure/infraflow/reconcile.go Outdated Show resolved Hide resolved
Co-authored-by: Alexander Hebel <alexander.hebel@sap.com>
@gardener-robot-ci-1 gardener-robot-ci-1 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 Oct 15, 2024
@gardener-robot-ci-1 gardener-robot-ci-1 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 Oct 15, 2024
Copy link
Contributor

@hebelsan hebelsan left a comment

Choose a reason for hiding this comment

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

/lgtm

@gardener-robot gardener-robot added reviewed/lgtm Has approval for merging and removed needs/review Needs review labels Oct 15, 2024
@gardener-robot-ci-1 gardener-robot-ci-1 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 Oct 15, 2024
@kon-angelo kon-angelo merged commit 65d7040 into gardener:master Oct 15, 2024
13 checks passed
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/networking Networking related kind/enhancement Enhancement, improvement, extension needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) platform/aws Amazon web services platform/infrastructure reviewed/lgtm Has approval for merging reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants