Skip to content

Commit 4a52495

Browse files
Update pkg/options/types.go
Co-authored-by: Alex Kennedy <[email protected]>
1 parent 85f8a2c commit 4a52495

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/options/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ func (r *ResourceSet) Type() string {
108108
type NodeType string
109109

110110
// GetNodeFieldSelector returns a nodename field selector.
111-
func (n *NodeType) GetNodeFieldSelector(noNodeAssigned bool) string {
112-
if noNodeAssigned {
111+
func (n *NodeType) GetNodeFieldSelector(fetchUnscheduledPods bool) string {
112+
if fetchUnscheduledPods {
113113
if string(*n) != "" {
114114
klog.Warningf("spec.nodeName=%s will not be used, because --enable-unscheduled-pods-fetching is set", string(*n))
115115
}

0 commit comments

Comments
 (0)