Skip to content

Commit

Permalink
[horus] fixed drain fieldSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
mfordjody committed Sep 29, 2024
1 parent 15c6627 commit bced931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/horus/core/horuser/node_drain.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (h *Horuser) Drain(nodeName, clusterName string) (err error) {

ctxFirst, cancelFirst := h.GetK8sContext()
defer cancelFirst()
listOpts := v1.ListOptions{FieldSelector: fmt.Sprintf("nodeName=%s", nodeName)}
listOpts := v1.ListOptions{FieldSelector: fmt.Sprintf("spec.nodeName=%s", nodeName)}
var podNamespace string
pod, err := kubeClient.CoreV1().Pods(podNamespace).List(ctxFirst, listOpts)
if err != nil {
Expand Down

0 comments on commit bced931

Please sign in to comment.