-
Notifications
You must be signed in to change notification settings - Fork 258
fix(windows): register k8s-restart-job in NodePrep to avoid PIS bootstrap race #8535
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -485,7 +485,6 @@ function BasePrep { | |
| PREPROVISION_EXTENSION | ||
| Adjust-DynamicPortRange | ||
| Register-LogsCleanupScriptTask | ||
| Register-NodeResetScriptTask | ||
|
|
||
| Update-DefenderPreferences | ||
|
|
||
|
|
@@ -579,6 +578,11 @@ function NodePrep { | |
| Remove-Item $kubeConfigFile | ||
| } | ||
|
|
||
| # Register AFTER temp kubeconfig removal: the -AtStartup trigger would | ||
| # otherwise race PIS-baked VHD first boot and bring kubelet up with the | ||
| # embedded "nodeclient" cert instead of doing TLS bootstrap. | ||
| Register-NodeResetScriptTask | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we have a test for this - that the registration happens in nodeprop not baseprep?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added a validator. But I don't really like it. I don't like testing "X doesn't supposed to happen". They are infinite amount of things that doesn't suppose to happen ...
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replaced it with a proper e2e. BootstrapTLS enabled vs disabled |
||
|
|
||
| Start-InstallGPUDriver -EnableInstall $global:ConfigGPUDriverIfNeeded -GpuDriverURL $global:GpuDriverURL | ||
|
|
||
| if (Test-Path $CacheDir) | ||
|
|
||
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.
we already have the bootstrap token fallback scenarios which are designed to test a similar path - could we just add another one for the VHDCaching case instead?
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.
VHDCaching: true