mirror of
https://github.com/rancher/k3k.git
synced 2026-08-20 12:56:16 +00:00
check err
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user