kubernetes: fix certificate generation

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
Sascha Grunert
2020-09-10 13:07:32 +02:00
parent 9210c8e8ed
commit 35f7a3347c
@@ -20,7 +20,7 @@ let
size = 2048; size = 2048;
}; };
CN = top.masterAddress; CN = top.masterAddress;
hosts = cfg.cfsslAPIExtraSANs; hosts = [top.masterAddress] ++ cfg.cfsslAPIExtraSANs;
}); });
cfsslAPITokenBaseName = "apitoken.secret"; cfsslAPITokenBaseName = "apitoken.secret";
@@ -228,7 +228,8 @@ in
}; };
private_key = cert.privateKeyOptions; private_key = cert.privateKeyOptions;
request = { request = {
inherit (cert) CN hosts; hosts = [cert.CN] ++ cert.hosts;
inherit (cert) CN;
key = { key = {
algo = "rsa"; algo = "rsa";
size = 2048; size = 2048;