Skip to content

Commit

Permalink
Match all versions in CRDMatcher() (kanisterio#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewhamilton authored and chaitanya-baraskar committed Apr 5, 2021
1 parent cd53116 commit 394b449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/discovery/crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ func crdsToMatcher(crds []apiextensions.CustomResourceDefinition) filter.Resourc
gvrs := make(filter.ResourceTypeMatcher, 0, len(crds))
for _, crd := range crds {
gvr := filter.ResourceTypeRequirement{
Group: crd.Spec.Group,
Version: crd.Spec.Version,
Group: crd.Spec.Group,
// Omit Version-- match any version
Resource: crd.Spec.Names.Plural,
}
gvrs = append(gvrs, gvr)
Expand Down

0 comments on commit 394b449

Please sign in to comment.