-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Switch to using kubelet config file for all supported flags #10433
base: master
Are you sure you want to change the base?
Conversation
c6f443b
to
5b85991
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #10433 +/- ##
==========================================
- Coverage 43.03% 41.74% -1.29%
==========================================
Files 163 177 +14
Lines 16534 14931 -1603
==========================================
- Hits 7115 6233 -882
+ Misses 8158 7510 -648
+ Partials 1261 1188 -73
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Makes logged output more consistent when k3s fails during initialization Signed-off-by: Brad Davidson <[email protected]>
Expose actual error, so that we can tell if the deployment is not found or not ready/available Signed-off-by: Brad Davidson <[email protected]>
5b85991
to
e56d9f1
Compare
Signed-off-by: Brad Davidson <[email protected]>
e56d9f1
to
ce0e400
Compare
// and a structured configuration file that upstream does not provide a convienent way to initailize with default values. | ||
// The defaults and our desired config also vary by OS. | ||
func kubeletArgsAndConfig(cfg *config.Agent) (map[string]string, *kubeletconfig.KubeletConfiguration, error) { | ||
defaultConfig, err := defaultKubeletConfig(cfg) |
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.
Is this going to work on Windows? Won't stuff like the cgroup driver fail/be unnecessary on this OS?
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.
yeah I'm honestly not sure what the windows kubelet does if you try to set the cgroup stuff. I'll try this out in RKE2 before merging.
Proposed Changes
Switch to using kubelet config file for all supported flags
Types of Changes
enhancement / tech debt
Verification
See linked issue
Testing
Linked Issues
User-Facing Change
Further Comments
Currently using a hacky string replace when marshaling the config file to work around an upstream issue: