Merge pull request #41571 from php-coder/fix_comments
Automatic merge from submit-queue Minor cleanups Minor improvements: - `ValidateNoNewFinalizers`: remove unused const - Mention that mutation of `spec.initContainers[*].image` field is allowed - Improve godoc comments
This commit is contained in:
@@ -46,14 +46,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