Skip to content

Commit

Permalink
Merge pull request #50 from takutakahashi/fix_phase
Browse files Browse the repository at this point in the history
fix phase: set provisioning once update triggered
  • Loading branch information
takutakahashi authored Oct 15, 2020
2 parents 15e0091 + ead0365 commit af9c529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/awsbackend_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (r *AWSBackendReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)
} else if err != nil {
return ctrl.Result{}, err
}
if backend.Status.Phase == "" {
if backend.Status.Phase != loadbalancerv1beta1.BackendPhaseDeleted {
backend.Status.Phase = loadbalancerv1beta1.BackendPhaseProvisioning
}
if backend.ObjectMeta.Finalizers == nil || len(backend.ObjectMeta.Finalizers) == 0 {
Expand Down

0 comments on commit af9c529

Please sign in to comment.