Skip to content

Commit

Permalink
fix(agent): completed without expected nodes
Browse files Browse the repository at this point in the history
Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
  • Loading branch information
c3y1huang authored and bk201 committed Apr 18, 2023
1 parent ef90a2c commit d5bb2ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@ func (m *SupportBundleManager) getAgentNodesIn(podList *v1.PodList) ([]*v1.Node,
}

func (m *SupportBundleManager) refreshNodes(agentDaemonSet *appsv1.DaemonSet) error {
m.nodesLock.Lock()
defer m.nodesLock.Unlock()

podList, err := m.getAgentPodsCreatedBy(agentDaemonSet)
if err != nil {
return err
Expand Down

0 comments on commit d5bb2ba

Please sign in to comment.