Skip to content

Commit

Permalink
Fix Nodetype
Browse files Browse the repository at this point in the history
  • Loading branch information
CatherineF-dev committed Jul 24, 2024
1 parent e18b557 commit 280bf34
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/options/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@ func (r *ResourceSet) Type() string {
// NodeType represents a nodeName to query from.
type NodeType string

func (n *NodeType) Set(value string) error {

Check failure on line 110 in pkg/options/types.go

View workflow job for this annotation

GitHub Actions / ci-go-lint

exported: exported method NodeType.Set should have comment or be unexported (revive)
*n = NodeType(value)
return nil
}

func (n NodeType) String() string {
return string(n)
}

// GetNodeFieldSelector returns a nodename field selector.
func (n *NodeType) GetNodeFieldSelector(fetchUnscheduledPods bool) string {
if fetchUnscheduledPods {
Expand Down

0 comments on commit 280bf34

Please sign in to comment.