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
Conversation
/ready |
/invite @jia-jerry @EmoinLanyu |
@EmoinLanyu, @jia-jerry You have pull request review open invite, please check |
07527c8
to
425b97e
Compare
/test |
Testrun: e2e-hcnwb +---------------------+---------------------+--------+----------+ | NAME | STEP | PHASE | DURATION | +---------------------+---------------------+--------+----------+ | infrastructure-test | infrastructure-test | Failed | 4m8s | +---------------------+---------------------+--------+----------+ |
@rfranzke You need rebase this pull request with latest master branch. Please check. |
425b97e
to
bf35e1f
Compare
@EmoinLanyu Rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
@@ -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}") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
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:
Release note: