Skip to content

Commit

Permalink
use &&
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshisharma84 committed Nov 30, 2023
1 parent b52abc4 commit c7ad506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/manifest_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (r *ManifestReconciler) Reconcile(ctx context.Context, req ctrl.Request) (c
return ctrl.Result{}, nil
}

if (existing.Spec.Checksum != existing.Spec.NewChecksum) && (existing.Spec.NewChecksum != "") {
if (existing.Spec.Checksum != existing.Spec.NewChecksum) && (existing.Spec.NewChecksum != "") && (existing.Status.Type != boundlessv1alpha1.TypeComponentAvailable) {
// Update is required
logger.Info("checksum differs, update needed", "Checksum", existing.Spec.Checksum, "NewChecksum", existing.Spec.NewChecksum)
// First, update the checksum to avoid any reconciliation
Expand Down

0 comments on commit c7ad506

Please sign in to comment.