Skip to content

Commit

Permalink
Resolved Conflict [release-3.3] Fix failed to cache resources if grou…
Browse files Browse the repository at this point in the history
…p version not found #5408 (#5466)

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
  • Loading branch information
hongzhouzi committed Jan 12, 2023
1 parent 705ea4a commit dbb3f04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/apiserver/apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,10 @@ func waitForCacheSync(discoveryClient discovery.DiscoveryInterface, sharedInform
return err
})
if err != nil {
if errors.IsNotFound(err) {
klog.Warningf("group version %s not exists in the cluster", groupVersion)
continue
}
return fmt.Errorf("failed to fetch group version resources %s: %s", groupVersion, err)
}
for _, resourceName := range resourceNames {
Expand Down

0 comments on commit dbb3f04

Please sign in to comment.