Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pkg/controllers/cnclaim/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ func (r *Actor) ensureOwnership(ctx *recon.Context[*v1alpha1.CNClaim], pod *core
}

func (r *Actor) syncBindPod(ctx *recon.Context[*v1alpha1.CNClaim], pod *corev1.Pod) error {
if pod.Labels[pub.LifecycleStateKey] != string(pub.LifecycleStateNormal) {
_, directPod := pod.Labels[v1alpha1.DirectPodLabel]
if !directPod && pod.Labels[pub.LifecycleStateKey] != string(pub.LifecycleStateNormal) {
// pod is not in normal state, skip binding and wait underlying operation to complete
return recon.ErrReSync("pod is not in normal state, wait", retryPatchInterval)
}
Expand Down
Loading