// ClientBackedDryRunGetter implements the DryRunGetter interface for use in NewDryRunClient() and proxies all GET and LIST requests to the backing API server reachable via rest.Config
errs=append(errs,pkgerrors.New("invalid configuration: kind and apiVersion is mandatory information that needs to be specified in all YAML documents"))
errs=append(errs,errors.New("invalid configuration: kind and apiVersion is mandatory information that needs to be specified in all YAML documents"))
continue
}
// Check whether the kind has been registered before. If it has, throw an error
ifknown:=knownKinds[typeMetaInfo.Kind];known{
errs=append(errs,pkgerrors.Errorf("invalid configuration: kind %q is specified twice in YAML file",typeMetaInfo.Kind))
errs=append(errs,errors.Errorf("invalid configuration: kind %q is specified twice in YAML file",typeMetaInfo.Kind))
continue
}
knownKinds[typeMetaInfo.Kind]=true
...
...
@@ -110,7 +110,7 @@ func SplitYAMLDocuments(yamlBytes []byte) (map[schema.GroupVersionKind][]byte, e
// Build a GroupVersionKind object from the deserialized TypeMeta object