mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Clean up and document validation strings
Also add a detail string for Required and Forbidden. Fix tests.
This commit is contained in:
@@ -137,7 +137,7 @@ func TestNewInvalid(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
field.Required(field.NewPath("field[0].name")),
|
||||
field.Required(field.NewPath("field[0].name"), ""),
|
||||
&unversioned.StatusDetails{
|
||||
Kind: "Kind",
|
||||
Name: "name",
|
||||
|
||||
Reference in New Issue
Block a user