We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5cb1ec5 + 01f1cf3 commit 8cd8784Copy full SHA for 8cd8784
cmd/controller-manager/app/helper_test.go
@@ -60,6 +60,20 @@ func TestIsControllerEnabled(t *testing.T) {
60
disabledByDefaultControllers: []string{"delta", "echo"},
61
expected: false,
62
},
63
+ {
64
+ name: "on by star, not off by name",
65
+ controllerName: "alpha",
66
+ controllers: []string{"*", "-charlie"},
67
+ disabledByDefaultControllers: []string{"delta", "echo"},
68
+ expected: true,
69
+ },
70
71
+ name: "off by name with star",
72
+ controllerName: "charlie",
73
74
75
+ expected: false,
76
77
{
78
name: "off by default implicit, no star",
79
controllerName: "foxtrot",
0 commit comments