Merge pull request #3863 from monopole/simplifyGvk

Simplify gvk, speed up cluster-scoped checks.
This commit is contained in:
Kubernetes Prow Robot
2021-05-03 16:06:20 -07:00
committed by GitHub
20 changed files with 167 additions and 335 deletions

View File

@@ -36,7 +36,7 @@ func (w Writer) WriteIndividualFiles(dirPath string, m resmap.ResMap) error {
}
}
}
for _, res := range m.NonNamespaceable() {
for _, res := range m.ClusterScoped() {
err := w.write(dirPath, fileName(res), res)
if err != nil {
return err