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

Support for Kubernetes v1.23 #426

Merged
merged 2 commits into from Feb 10, 2022
Merged

Conversation

rfranzke
Copy link
Member

@rfranzke rfranzke commented Jan 26, 2022

How to categorize this PR?

/area open-source usability
/kind enhancement
/platform alicloud
/exp intermediate
/topology garden seed shoot
/merge squash

What this PR does / why we need it:
This PR adds support for Kubernetes 1.23 to the extension.

Which issue(s) this PR fixes:
Part of gardener/gardener#5102
Part of #202

Special notes for your reviewer:

  • I have successfully validated the functionality as follows:
    • ✅ Create new clusters with versions < 1.23
    • ✅ Create new clusters with version = 1.23
    • ✅ Upgrade old clusters from version 1.22 to version 1.23
    • ✅ Delete clusters with versions < 1.23
    • ✅ Delete clusters with version = 1.23

Release note:

The Alicloud extension does now support shoot clusters with Kubernetes version 1.23. You should consider the [Kubernetes release notes](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.23.md) before upgrading to 1.23. 

@gardener-robot gardener-robot added area/open-source Open Source (community, enablement, contributions, conferences, CNCF, etc.) related area/usability Usability related exp/intermediate Issue that requires some project experience kind/enhancement Enhancement, improvement, extension merge/squash Should be merged via 'Squash and merge' platform/alicloud Alicloud platform/infrastructure topology/garden Affects Garden clusters topology/seed Affects Seed clusters topology/shoot Affects Shoot clusters needs/review Needs review size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) labels Jan 26, 2022
@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 Jan 26, 2022
@gardener-robot-ci-1 gardener-robot-ci-1 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 Jan 26, 2022
@rfranzke
Copy link
Member Author

/ready

@gardener-robot gardener-robot marked this pull request as ready for review January 27, 2022 07:59
@gardener-robot gardener-robot requested review from a team as code owners January 27, 2022 07:59
@rfranzke rfranzke 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 Jan 27, 2022
@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 Jan 27, 2022
@rfranzke
Copy link
Member Author

/invite @jia-jerry @EmoinLanyu

@gardener-robot
Copy link

@EmoinLanyu, @jia-jerry You have pull request review open invite, please check

@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 Feb 9, 2022
@EmoinLanyu
Copy link
Contributor

/test

@testmachinery
Copy link

testmachinery bot commented Feb 10, 2022

Testrun: e2e-hcnwb
Workflow: e2e-hcnwb-wf
Phase: Failed

+---------------------+---------------------+--------+----------+
|        NAME         |        STEP         | PHASE  | DURATION |
+---------------------+---------------------+--------+----------+
| infrastructure-test | infrastructure-test | Failed | 4m8s     |
+---------------------+---------------------+--------+----------+

@gardener-robot gardener-robot added kind/test Test needs/rebase Needs git rebase labels Feb 10, 2022
@gardener-robot
Copy link

@rfranzke You need rebase this pull request with latest master branch. Please check.

@rfranzke
Copy link
Member Author

@EmoinLanyu Rebased

@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 Feb 10, 2022
@gardener-robot-ci-2 gardener-robot-ci-2 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 Feb 10, 2022
Copy link
Contributor

@EmoinLanyu EmoinLanyu 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/rebase Needs git rebase needs/review Needs review labels Feb 10, 2022
@@ -125,27 +127,35 @@ func (e *ensurer) EnsureKubeletServiceUnitOptions(ctx context.Context, gctx gcon
return new, nil
}

func ensureKubeletCommandLineArgs(command []string) []string {
func ensureKubeletCommandLineArgs(command []string, kubeletVersion *semver.Version) []string {
// TODO: Figure out how to provide the provider-id via the kubelet config file (as of Kubernetes 1.19 the kubelet config
// offers a new `providerID` field which can be used, and it's expected that `--provider-id` will be deprecated eventually).
// Today, the problem is that the provider ID is determined dynamically using the script above, but the kubelet config cannot
// reference environment variables like it's possible today with the CLI parameters.
// See https://github.com/kubernetes/kubernetes/pull/90494
command = extensionswebhook.EnsureStringWithPrefix(command, "--provider-id=", "${PROVIDER_ID}")
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to move provider-id to config file too?

Copy link
Member Author

Choose a reason for hiding this comment

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

Eventually yes, but not part of this PR. I have talked about this in #202 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to move provider-id to config file too?

It is now addressed in TODO. For now I think we can keep it this way and figure out a solution later.

@EmoinLanyu EmoinLanyu merged commit d4c66a5 into gardener:master Feb 10, 2022
@rfranzke rfranzke deleted the kubernetes-v1.23 branch February 10, 2022 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/open-source Open Source (community, enablement, contributions, conferences, CNCF, etc.) related area/usability Usability related exp/intermediate Issue that requires some project experience kind/enhancement Enhancement, improvement, extension kind/test Test merge/squash Should be merged via 'Squash and merge' needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) platform/alicloud Alicloud platform/infrastructure reviewed/lgtm Has approval for merging size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) topology/garden Affects Garden clusters topology/seed Affects Seed clusters topology/shoot Affects Shoot clusters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants