File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ func (r *ResourceSet) Type() string {
108108// NodeType represents a nodeName to query from.
109109type NodeType map [string ]struct {}
110110
111+ // Set converts a comma-separated string of nodename into a slice and appends it to the NodeList
111112func (n * NodeType ) Set (value string ) error {
112113 s := * n
113114 cols := strings .Split (value , "," )
@@ -120,6 +121,7 @@ func (n *NodeType) Set(value string) error {
120121 return nil
121122}
122123
124+ // AsSlice returns the LabelsAllowList in the form of plain string slice.
123125func (n NodeType ) AsSlice () []string {
124126 cols := make ([]string , 0 , len (n ))
125127 for col := range n {
@@ -132,6 +134,7 @@ func (n NodeType) String() string {
132134 return strings .Join (n .AsSlice (), "," )
133135}
134136
137+ // Type returns a descriptive string about the NodeList type.
135138func (n * NodeType ) Type () string {
136139 return "string"
137140}
@@ -150,6 +153,7 @@ func (n *NodeType) GetNodeFieldSelector() string {
150153
151154}
152155
156+ // NodeValue represents a nodeName to query from.
153157type NodeValue interface {
154158 GetNodeFieldSelector () string
155159}
You can’t perform that action at this time.
0 commit comments