Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Thibault Mange <[email protected]>
  • Loading branch information
thibaultmg committed Jul 17, 2024
1 parent 7b635ce commit 386cef4
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,7 @@ func (r *ObservabilityAddonReconciler) Reconcile(ctx context.Context, req ctrl.R

clusterID, err = openshift.GetClusterID(ctx, r.Client)
if err != nil {
if !errors.IsNotFound(err) {
return ctrl.Result{}, fmt.Errorf("failed to get cluster id: %w", err)
} else if errors.IsInvalid(err) {
if errors.IsInvalid(err) {
// ClusterVersion kind does not exist in OCP 3.x
log.Info("ClusterVersion kind does not exist in OCP 3.x")
} else {
Expand Down

0 comments on commit 386cef4

Please sign in to comment.