mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
Fixed test issue for image validation.
This commit is contained in:
parent
e31bcb97c6
commit
e005da697c
@ -271,13 +271,6 @@ spec:
|
|||||||
Field: "name",
|
Field: "name",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
validation.ValidationError{
|
|
||||||
Path: "Pod.spec.containers[0]",
|
|
||||||
Err: validation.MissingRequiredFieldError{
|
|
||||||
Path: "io.k8s.api.core.v1.Container",
|
|
||||||
Field: "image",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})))
|
})))
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -303,13 +296,6 @@ spec:
|
|||||||
Field: "name",
|
Field: "name",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
validation.ValidationError{
|
|
||||||
Path: "Pod.spec.containers[0]",
|
|
||||||
Err: validation.MissingRequiredFieldError{
|
|
||||||
Path: "io.k8s.api.core.v1.Container",
|
|
||||||
Field: "image",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})))
|
})))
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -347,15 +333,6 @@ items:
|
|||||||
- name: name
|
- name: name
|
||||||
`))
|
`))
|
||||||
|
|
||||||
Expect(err).To(Equal(utilerrors.NewAggregate([]error{
|
Expect(err).To(BeNil())
|
||||||
validation.ValidationError{
|
|
||||||
Path: "Pod.spec.containers[0]",
|
|
||||||
Err: validation.MissingRequiredFieldError{
|
|
||||||
Path: "io.k8s.api.core.v1.Container",
|
|
||||||
Field: "image",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})))
|
|
||||||
})
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user