Cleanup pki: control-plane-online

This commit is contained in:
Christian Albrecht 2019-03-11 11:42:12 +01:00
parent 50c5f489ef
commit 45e683fbd6
No known key found for this signature in database
GPG key ID: 866AF4B25DF7EB00
2 changed files with 25 additions and 28 deletions

View file

@ -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);