mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
Cleanup pki: control-plane-online
This commit is contained in:
parent
50c5f489ef
commit
45e683fbd6
2 changed files with 25 additions and 28 deletions
|
@ -283,12 +283,6 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
systemd.services.kube-control-plane-online.environment = let
|
||||
client = with cfg.certs; if top.apiserver.enable then clusterAdmin else kubelet;
|
||||
in {
|
||||
inherit (client) cert key;
|
||||
};
|
||||
|
||||
environment.etc.${cfg.etcClusterAdminKubeconfig}.source = mkIf (!isNull cfg.etcClusterAdminKubeconfig)
|
||||
(top.lib.mkKubeConfig "cluster-admin" clusterAdminKubeconfig);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue