Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie17Li committed Sep 28, 2023
1 parent e15a1de commit 8b14d26
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,11 @@ func (r *ModuleDeploymentReconciler) Reconcile(ctx context.Context, req ctrl.Req
return ctrl.Result{}, err
}
}

if !moduleVersionChanged && isUrlChange(moduleDeployment.Spec.Template.Spec.Module, newRS.Spec.Template.Spec.Module) {
newRS.Spec.Template.Spec.Module = moduleDeployment.Spec.Template.Spec.Module
if err := r.Client.Update(ctx, newRS); err != nil {
return ctrl.Result{}, err
}
}
if !moduleVersionChanged && isUrlChange(moduleDeployment.Spec.Template.Spec.Module, newRS.Spec.Template.Spec.Module) {
newRS.Spec.Template.Spec.Module = moduleDeployment.Spec.Template.Spec.Module
if err := r.Client.Update(ctx, newRS); err != nil {
return ctrl.Result{}, err
}
}

Expand Down

0 comments on commit 8b14d26

Please sign in to comment.