Make IsValidPercent return error strings
This commit is contained in:
@@ -632,7 +632,7 @@ func TestValidateDeployment(t *testing.T) {
|
||||
MaxSurge: intstr.FromString("20Percent"),
|
||||
},
|
||||
}
|
||||
errorCases["must be an integer or percentage"] = invalidMaxSurgeDeployment
|
||||
errorCases["must match the regex"] = invalidMaxSurgeDeployment
|
||||
|
||||
// MaxSurge and MaxUnavailable cannot both be zero.
|
||||
invalidRollingUpdateDeployment := validDeployment()
|
||||
|
Reference in New Issue
Block a user