kubernetes: fix certificate generation

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
Sascha Grunert 2020-08-31 13:07:58 +02:00
parent 9210c8e8ed
commit 35f7a3347c
No known key found for this signature in database
GPG key ID: 8CE029DD1A866E52

View file

@ -20,7 +20,7 @@ let
size = 2048;
};
CN = top.masterAddress;
hosts = cfg.cfsslAPIExtraSANs;
hosts = [top.masterAddress] ++ cfg.cfsslAPIExtraSANs;
});
cfsslAPITokenBaseName = "apitoken.secret";
@ -228,7 +228,8 @@ in
};
private_key = cert.privateKeyOptions;
request = {
inherit (cert) CN hosts;
hosts = [cert.CN] ++ cert.hosts;
inherit (cert) CN;
key = {
algo = "rsa";
size = 2048;