check err

This commit is contained in:
jpgouin
2025-01-23 16:29:43 +00:00
parent 5721c108b6
commit ec93371b71
+4 -1
View File
@@ -130,7 +130,10 @@ func generate(clx *cli.Context) error {
host := strings.Split(url.Host, ":")
if kubeconfigServerHost != "" {
host = []string{kubeconfigServerHost}
altNames.Set(kubeconfigServerHost)
err := altNames.Set(kubeconfigServerHost)
if err != nil {
return err
}
}
certAltNames := certs.AddSANs(altNames.Value())