-
-
Notifications
You must be signed in to change notification settings - Fork 14k
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
nixos/kubernetes: ensure kubelet cert contains a well-formed user #73139
Conversation
If the hostname is empty, this otherwise gets generated as `system:node:`, which causes problems during node registration.
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.
Small consistency suggestions but otherwise this LGTM.
Co-Authored-By: Danielle <dani@builds.terrible.systems>
@endocrimes good suggestion, applied |
Thank you for your contributions.
|
I marked this as stale due to inactivity. → More info |
cc @johanot @saschagrunert @offlinehacker (because y'all are listed as maintainers of the k/k package) |
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
I marked this as stale due to inactivity. → More info |
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
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/should-old-prs-that-look-abandoned-be-closed/21193/9 |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/1778 |
@@ -6,6 +6,12 @@ let | |||
top = config.services.kubernetes; | |||
cfg = top.kubelet; | |||
|
|||
kubeletRbacUser = | |||
if cfg.hostname == "" then | |||
throw "kubelet.hostname must be set. This is probably caused by networking.hostName being empty." |
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.
This should be done in an assertion (the module system assertion) and not halt the entire module system.
Closing as dead. |
If the hostname is empty, this otherwise gets generated as
system:node:
, which causes problems during node registration.Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @