From e6eec3df1a41abd187272309d31484360b14611f Mon Sep 17 00:00:00 2001 From: Andrii Perenesenko Date: Mon, 21 Jun 2021 12:37:26 -0700 Subject: [PATCH] fix: Fix the terminating of watch process --- server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.go b/server/server.go index b15b557e39..9ce44517c1 100644 --- a/server/server.go +++ b/server/server.go @@ -292,7 +292,7 @@ func (s *ArgoRolloutsServer) WatchRolloutInfos(q *rollout.RolloutInfoListQuery, return } } - ctx := context.Background() + ctx := ws.Context() rolloutIf := s.Options.RolloutsClientset.ArgoprojV1alpha1().Rollouts(q.GetNamespace()) kubeInformerFactory := kubeinformers.NewSharedInformerFactoryWithOptions(s.Options.KubeClientset, 0, kubeinformers.WithNamespace(q.Namespace))