fix(pkg/chartutil): only include external objects in capabilities

Signed-off-by: Adam Reese <adam@reese.io>
pull/5527/head
Adam Reese 5 years ago
parent fe06343b8f
commit 87e789f01f
No known key found for this signature in database
GPG Key ID: 06F35E60A7A18DD6

@ -74,8 +74,8 @@ func (v VersionSet) Has(apiVersion string) bool {
func allKnownVersions() VersionSet {
vs := make(VersionSet)
for gvk := range scheme.Scheme.AllKnownTypes() {
vs[gvk.GroupVersion().String()] = struct{}{}
for _, gv := range scheme.Scheme.PrioritizedVersionsAllGroups() {
vs[gv.String()] = struct{}{}
}
return vs
}

Loading…
Cancel
Save