mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
Improve error message for name/label validation.
This patch added user readable naming rules to the output of the error messages for name/label validation.
This commit is contained in:
@@ -638,7 +638,7 @@ func TestValidateDeployment(t *testing.T) {
|
||||
MaxSurge: intstr.FromString("20Percent"),
|
||||
},
|
||||
}
|
||||
errorCases["must match the regex"] = invalidMaxSurgeDeployment
|
||||
errorCases["a valid percent string must be"] = invalidMaxSurgeDeployment
|
||||
|
||||
// MaxSurge and MaxUnavailable cannot both be zero.
|
||||
invalidRollingUpdateDeployment := validDeployment()
|
||||
|
||||
Reference in New Issue
Block a user