@@ -97,6 +97,7 @@ func TestClusterExtensionAdmissionPackageName(t *testing.T) {
97
97
{"dot separated" , "some.package" , "" },
98
98
{"underscore separated" , "some_package" , regexMismatchError },
99
99
{"starts with dot" , ".some.package" , regexMismatchError },
100
+ {"multiple sequential separators" , "a.-b" , regexMismatchError },
100
101
}
101
102
102
103
t .Parallel ()
@@ -249,6 +250,7 @@ func TestClusterExtensionAdmissionChannel(t *testing.T) {
249
250
{"ends with period" , "end-with-period." , regexMismatchError },
250
251
{"contains underscore" , "some_thing" , regexMismatchError },
251
252
{"starts with dot" , ".some.thing" , regexMismatchError },
253
+ {"multiple sequential separators" , "a.-b" , regexMismatchError },
252
254
}
253
255
254
256
t .Parallel ()
@@ -356,6 +358,7 @@ func TestClusterExtensionAdmissionServiceAccount(t *testing.T) {
356
358
{"ends with hyphen" , "end-with-hyphen-" , regexMismatchError },
357
359
{"starts with period" , ".start-with-period" , regexMismatchError },
358
360
{"ends with period" , "end-with-period." , regexMismatchError },
361
+ {"multiple sequential separators" , "a.-b" , regexMismatchError },
359
362
}
360
363
361
364
t .Parallel ()
0 commit comments