Minor cleanups.
- ValidateNoNewFinalizers: remove unused const - Mention that mutation of spec.initContainers[*].image field is allowed - Improve godoc comments - validation_test.go(expectPrefix): remove unused function
This commit is contained in:
@@ -44,14 +44,6 @@ const (
|
||||
idErrMsg = "a valid C identifier must"
|
||||
)
|
||||
|
||||
func expectPrefix(t *testing.T, prefix string, errs field.ErrorList) {
|
||||
for i := range errs {
|
||||
if f, p := errs[i].Field, prefix; !strings.HasPrefix(f, p) {
|
||||
t.Errorf("expected prefix '%s' for field '%s' (%v)", p, f, errs[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func testVolume(name string, namespace string, spec api.PersistentVolumeSpec) *api.PersistentVolume {
|
||||
objMeta := metav1.ObjectMeta{Name: name}
|
||||
if namespace != "" {
|
||||
|
Reference in New Issue
Block a user