Skip to content

How to resolve an issue with double event #4008

Closed Answered by mirisu2
mirisu2 asked this question in Support
Discussion options

You must be logged in to vote

Ok. I realized it.

func (r *ProjectReconciler) SetupWithManager(mgr ctrl.Manager) error {
	return ctrl.NewControllerManagedBy(mgr).
		For(&k8sv1.Project{}).
		Owns(&corev1.Namespace{}).
                ...
		Complete(r)
}

First condition (For) and second condition (Owns) called Reconcile func twice.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mirisu2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
1 participant