mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
fix kubectl set selector
This commit is contained in:
@@ -283,6 +283,13 @@ func TestGetResourcesAndSelector(t *testing.T) {
|
||||
MatchExpressions: []metav1.LabelSelectorRequirement{},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "no resource and selector",
|
||||
args: args{args: []string{}},
|
||||
wantResources: []string{},
|
||||
wantErr: false,
|
||||
wantSelector: nil,
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
gotResources, gotSelector, err := getResourcesAndSelector(tt.args.args)
|
||||
|
||||
Reference in New Issue
Block a user