Skip to content

Commit

Permalink
Skip CRD installation if output flag enabled
Browse files Browse the repository at this point in the history
Closes #886
  • Loading branch information
squakez authored and nicolaferraro committed Jan 11, 2021
1 parent dede785 commit 0e3fa94
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/install/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,12 @@ func SetupClusterWideResourcesOrCollect(ctx context.Context, clientProvider clie
return err
}

// Wait for all CRDs to be installed before proceeding
if err := WaitForAllCRDInstallation(ctx, clientProvider, 25*time.Second); err != nil {
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
Expand Down

0 comments on commit 0e3fa94

Please sign in to comment.