cleanup
This commit is contained in:
parent
331f9ea96c
commit
33bf54d08f
@ -166,7 +166,6 @@ func (sd *SecretData) KeyCert(cluster, caName, name, profile, label string, req
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
//for _, part := range strings.Split(host, ".") {
|
|
||||||
if errs := validation.IsDNS1123Subdomain(host); len(errs) == 0 {
|
if errs := validation.IsDNS1123Subdomain(host); len(errs) == 0 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -176,7 +175,6 @@ func (sd *SecretData) KeyCert(cluster, caName, name, profile, label string, req
|
|||||||
|
|
||||||
path := field.NewPath(cluster, name, "hosts").Index(idx)
|
path := field.NewPath(cluster, name, "hosts").Index(idx)
|
||||||
return nil, fmt.Errorf("%v: %q is not an IP or FQDN", path, host)
|
return nil, fmt.Errorf("%v: %q is not an IP or FQDN", path, host)
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if req.CA != nil {
|
if req.CA != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user