Merge pull request #102159 from roycaihw/mark-containerimage-name-optional

Mark ContainerImage.names as optional
This commit is contained in:
Kubernetes Prow Robot 2021-05-20 13:14:40 -07:00 committed by GitHub
commit 8a70c48553
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 3 deletions

View File

@ -4937,9 +4937,6 @@
"type": "integer"
}
},
"required": [
"names"
],
"type": "object"
},
"io.k8s.api.core.v1.ContainerPort": {

View File

@ -4206,6 +4206,7 @@ type PodSignature struct {
// ContainerImage describe a container image
type ContainerImage struct {
// Names by which this image is known.
// +optional
Names []string
// The size of the image in bytes.
// +optional

View File

@ -787,6 +787,7 @@ message Container {
message ContainerImage {
// Names by which this image is known.
// e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
// +optional
repeated string names = 1;
// The size of the image in bytes.

View File

@ -4872,6 +4872,7 @@ type PodSignature struct {
type ContainerImage struct {
// Names by which this image is known.
// e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
// +optional
Names []string `json:"names" protobuf:"bytes,1,rep,name=names"`
// The size of the image in bytes.
// +optional