mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
Merge pull request #91065 from SataQiu/fix-kubeadm-20200513
kubeadm: log more information when missing the necessary config element
This commit is contained in:
commit
9e88546f30
@ -97,7 +97,7 @@ func SplitYAMLDocuments(yamlBytes []byte) (kubeadmapi.DocumentMap, error) {
|
||||
return nil, err
|
||||
}
|
||||
if len(gvk.Group) == 0 || len(gvk.Version) == 0 || len(gvk.Kind) == 0 {
|
||||
return nil, errors.New("invalid configuration: kind and apiVersion is mandatory information that needs to be specified")
|
||||
return nil, errors.Errorf("invalid configuration for GroupVersionKind %+v: kind and apiVersion is mandatory information that must be specified", gvk)
|
||||
}
|
||||
|
||||
// Check whether the kind has been registered before. If it has, throw an error
|
||||
|
Loading…
Reference in New Issue
Block a user