Skip to content

Commit

Permalink
fix(dashboard): cleanup viewcontroller after each request. Fixes argo…
Browse files Browse the repository at this point in the history
  • Loading branch information
unrolled committed Nov 29, 2024
1 parent 5f59344 commit 2b5f0aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ func (s *ArgoRolloutsServer) initRolloutViewController(namespace string, name st
}

func (s *ArgoRolloutsServer) getRolloutInfo(namespace string, name string) (*rollout.RolloutInfo, error) {
controller := s.initRolloutViewController(namespace, name, context.Background())
ctx, cancel := context.WithCancel(context.Background())
defer cancel()

controller := s.initRolloutViewController(namespace, name, ctx)
ri, err := controller.GetRolloutInfo()
if err != nil {
return nil, err
Expand Down

0 comments on commit 2b5f0aa

Please sign in to comment.