-
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
[wip] 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 49.64% 43.68% -5.96%
==========================================
Files 178 178
Lines 14801 14903 +102
==========================================
- Hits 7348 6511 -837
- Misses 6105 7182 +1077
+ Partials 1348 1210 -138
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
5b85991
to
e56d9f1
Compare
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.
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 pending RKE2 cgroup checks
I'm going to hold on this until the August release cycle, as I'd like more lead time on testing it. |
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]>
ce0e400
to
bf8a25f
Compare
Signed-off-by: Brad Davidson <[email protected]>
bf8a25f
to
c9b86b7
Compare
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: