Skip to content

Commit

Permalink
crdpuller: don't skip explicitly passed resource
Browse files Browse the repository at this point in the history
  • Loading branch information
sttts committed May 19, 2023
1 parent 1f2244a commit 190bbeb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/crdpuller/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ func (sp *schemaPuller) PullCRDs(ctx context.Context, resourceNames ...string) (

gvk := gv.WithKind(apiResource.Kind)
logger = logger.WithValues("kind", apiResource.Kind)

if genericcontrolplanescheme.Scheme.Recognizes(gvk) || extensionsapiserver.Scheme.Recognizes(gvk) {
if (genericcontrolplanescheme.Scheme.Recognizes(gvk) || extensionsapiserver.Scheme.Recognizes(gvk)) && !resourcesToPull.Has(groupResource.String()) {
logger.Info("ignoring a resource since it is part of the core KCP resources")
continue
}
Expand Down

0 comments on commit 190bbeb

Please sign in to comment.