// Check whether the kind of resources could be exposed func canBeExposed(kind schema.GroupKind) error { … }