Skip to content

Commit

Permalink
fix: cluster is always in 'DeleteCR' after deleted (#6890)
Browse files Browse the repository at this point in the history
  • Loading branch information
free6om authored Mar 26, 2024
1 parent aa96c9b commit 09688a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/workloads/replicatedstatemachine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ func (r *ReplicatedStateMachineReconciler) SetupWithManager(mgr ctrl.Manager) er
Watches(&batchv1.Job{}, jobHandler).
Watches(&corev1.Pod{}, stsPodHandler).
Owns(&corev1.Pod{}).
Owns(&corev1.PersistentVolumeClaim{}).
Complete(r)
}

Expand All @@ -208,5 +209,6 @@ func (r *ReplicatedStateMachineReconciler) SetupWithManager(mgr ctrl.Manager) er
Owns(&batchv1.Job{}).
Watches(&corev1.Pod{}, podHandler).
Owns(&corev1.Pod{}).
Owns(&corev1.PersistentVolumeClaim{}).
Complete(r)
}

0 comments on commit 09688a9

Please sign in to comment.