Skip to content

Commit

Permalink
Fix failing E2E test due to incorrect CRD not found logic
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan West <[email protected]>
  • Loading branch information
jgwest committed May 23, 2024
1 parent b1f86dd commit c132cfa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/argorollouts_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ func (r *RolloutManagerReconciler) doesCRDExist(cfg *rest.Config, crdName string
}
apiResources, err := discoveryClient.ServerResourcesForGroupVersion("monitoring.coreos.com/v1")
if err != nil {
if apierrors.IsNotFound(err) {
return false, nil
}
return false, err
}
for _, resource := range apiResources.APIResources {
Expand Down

0 comments on commit c132cfa

Please sign in to comment.