fix namespace will match all empty namespace

This commit is contained in:
Donny Xia
2020-09-17 12:46:18 -07:00
parent 20cd4bfef9
commit 2f8a376ae4
2 changed files with 8 additions and 2 deletions

View File

@@ -164,6 +164,12 @@ func TestFindPatchTargets(t *testing.T) {
},
count: 2,
},
{
target: types.Selector{
Namespace: "foo",
},
count: 0,
},
}
for _, testcase := range testcases {
actual, err := rm.Select(testcase.target)