mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-12 12:48:51 +00:00
Loosen label and annotation validation and related tests
This commit is contained in:
@@ -417,7 +417,7 @@ func TestRequirementConstructor(t *testing.T) {
|
||||
{"x", ExistsOperator, nil, true},
|
||||
{"1foo", InOperator, util.NewStringSet("bar"), true},
|
||||
{"1234", InOperator, util.NewStringSet("bar"), true},
|
||||
{strings.Repeat("a", 64), ExistsOperator, nil, false}, //breaks DNS rule that len(key) <= 63
|
||||
{strings.Repeat("a", 64), ExistsOperator, nil, true}, //breaks DNS rule that len(key) <= 63
|
||||
}
|
||||
for _, rc := range requirementConstructorTests {
|
||||
if _, err := NewRequirement(rc.Key, rc.Op, rc.Vals); err == nil && !rc.Success {
|
||||
|
Reference in New Issue
Block a user