File tree 1 file changed +4
-0
lines changed
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 {
108
108
// NodeType represents a nodeName to query from.
109
109
type NodeType map [string ]struct {}
110
110
111
+ // Set converts a comma-separated string of nodename into a slice and appends it to the NodeList
111
112
func (n * NodeType ) Set (value string ) error {
112
113
s := * n
113
114
cols := strings .Split (value , "," )
@@ -120,6 +121,7 @@ func (n *NodeType) Set(value string) error {
120
121
return nil
121
122
}
122
123
124
+ // AsSlice returns the LabelsAllowList in the form of plain string slice.
123
125
func (n NodeType ) AsSlice () []string {
124
126
cols := make ([]string , 0 , len (n ))
125
127
for col := range n {
@@ -132,6 +134,7 @@ func (n NodeType) String() string {
132
134
return strings .Join (n .AsSlice (), "," )
133
135
}
134
136
137
+ // Type returns a descriptive string about the NodeList type.
135
138
func (n * NodeType ) Type () string {
136
139
return "string"
137
140
}
@@ -150,6 +153,7 @@ func (n *NodeType) GetNodeFieldSelector() string {
150
153
151
154
}
152
155
156
+ // NodeValue represents a nodeName to query from.
153
157
type NodeValue interface {
154
158
GetNodeFieldSelector () string
155
159
}
You can’t perform that action at this time.
0 commit comments