Skip to content

Commit 709140f

Browse files
authored
chore: skip client if creation fails instead of failing job (#1729)
1 parent 0a71088 commit 709140f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils/kube/fetcher.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ func FetchInvolvedObjects(ctx api.ScrapeContext, iObjs []v1.InvolvedObject) ([]*
7474
ctx.JobHistory().AddErrorf("failed to create dynamic client %s: %v, existing crds: %s", gvk, err, strings.Join(crdList, ","))
7575
}
7676
}
77-
return nil, fmt.Errorf("failed to create dynamic client for %s: %w", gvk, err)
77+
78+
// Skip this client and continue with others
79+
continue
7880
}
7981

8082
eg.Go(func() error {

0 commit comments

Comments
 (0)