Skip to content

Commit

Permalink
set namespace when listing ldm pods
Browse files Browse the repository at this point in the history
Signed-off-by: hellokg21 <[email protected]>
  • Loading branch information
hellokg21 committed Oct 31, 2023
1 parent 42b473c commit fb0a8b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/install/localdiskmanager/localdiskmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ func (m *LocalDiskManagerMaintainer) Ensure() (*hwameistoriov1alpha1.Cluster, er
}

var podList corev1.PodList
if err := m.Client.List(context.TODO(), &podList, &client.ListOptions{Namespace: ldmDaemonSet.Namespace}); err != nil {
if err := m.Client.List(context.TODO(), &podList, &client.ListOptions{Namespace: ldmDaemonSetToCreate.Namespace}); err != nil {
log.Errorf("List pods err: %v", err)
return newClusterInstance, err
}
Expand Down

0 comments on commit fb0a8b4

Please sign in to comment.