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

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie17Li committed Nov 20, 2023
1 parent 75d9e33 commit afc388f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ func (r *ModuleDeploymentReconciler) Reconcile(ctx context.Context, req ctrl.Req
}
return ctrl.Result{}, nil
}

}

if moduleDeployment.Generation == 1 {
Expand Down Expand Up @@ -278,6 +277,7 @@ func (r *ModuleDeploymentReconciler) updateOwnerReference(ctx context.Context, m
})
moduleDeployment.SetOwnerReferences(ownerReference)
utils.AddFinalizer(&moduleDeployment.ObjectMeta, finalizer.ModuleReplicaSetExistedFinalizer)
utils.AddFinalizer(&moduleDeployment.ObjectMeta, finalizer.ModuleExistedFinalizer)
err = utils.UpdateResource(r.Client, ctx, moduleDeployment)
if err != nil {
return utils.Error(err, "Failed to update moduleDeployment", "moduleDeploymentName", moduleDeployment.Name)
Expand Down

0 comments on commit afc388f

Please sign in to comment.