Skip CRD installation if output flag enabled
Closes
@@ -80,10 +80,13 @@ func SetupClusterWideResourcesOrCollect(ctx context.Context, clientProvider clie
return err
}
+ // Don't wait if we're just collecting resources
+ if collection == nil {
// Wait for all CRDs to be installed before proceeding
if err := WaitForAllCRDInstallation(ctx, clientProvider, 25*time.Second); err != nil {
return err
}
+ }
// Installing ClusterRole
clusterRoleInstalled, err := IsClusterRoleInstalled(ctx, c)
