You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "astefanutti (via GitHub)" <gi...@apache.org> on 2023/02/17 08:13:59 UTC

[GitHub] [camel-k] astefanutti commented on a diff in pull request #4064: Move pod's phase indexer to integration controller initialization

astefanutti commented on code in PR #4064:
URL: https://github.com/apache/camel-k/pull/4064#discussion_r1109420021


##########
pkg/controller/integration/integration_controller.go:
##########
@@ -55,6 +57,16 @@ import (
 )
 
 func Add(mgr manager.Manager, c client.Client) error {
+	err := mgr.GetFieldIndexer().IndexField(context.Background(), &corev1.Pod{}, "status.phase",

Review Comment:
   I've checked and the context is used to cancel wait on informer(s) synchronisation. It'll probably work 99% of the time, but for correctness, it may be better to use `ctrl.SetupSignalHandler()` or find a way to pass the parent context.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org