Merge pull request #102159 from roycaihw/mark-containerimage-name-optional
Mark ContainerImage.names as optional
This commit is contained in:
3
api/openapi-spec/swagger.json
generated
3
api/openapi-spec/swagger.json
generated
@@ -4937,9 +4937,6 @@
|
|||||||
"type": "integer"
|
"type": "integer"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
|
||||||
"names"
|
|
||||||
],
|
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"io.k8s.api.core.v1.ContainerPort": {
|
"io.k8s.api.core.v1.ContainerPort": {
|
||||||
|
@@ -4206,6 +4206,7 @@ type PodSignature struct {
|
|||||||
// ContainerImage describe a container image
|
// ContainerImage describe a container image
|
||||||
type ContainerImage struct {
|
type ContainerImage struct {
|
||||||
// Names by which this image is known.
|
// Names by which this image is known.
|
||||||
|
// +optional
|
||||||
Names []string
|
Names []string
|
||||||
// The size of the image in bytes.
|
// The size of the image in bytes.
|
||||||
// +optional
|
// +optional
|
||||||
|
@@ -787,6 +787,7 @@ message Container {
|
|||||||
message ContainerImage {
|
message ContainerImage {
|
||||||
// Names by which this image is known.
|
// Names by which this image is known.
|
||||||
// e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
|
// e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
|
||||||
|
// +optional
|
||||||
repeated string names = 1;
|
repeated string names = 1;
|
||||||
|
|
||||||
// The size of the image in bytes.
|
// The size of the image in bytes.
|
||||||
|
@@ -4872,6 +4872,7 @@ type PodSignature struct {
|
|||||||
type ContainerImage struct {
|
type ContainerImage struct {
|
||||||
// Names by which this image is known.
|
// Names by which this image is known.
|
||||||
// e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
|
// 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"`
|
Names []string `json:"names" protobuf:"bytes,1,rep,name=names"`
|
||||||
// The size of the image in bytes.
|
// The size of the image in bytes.
|
||||||
// +optional
|
// +optional
|
||||||
|
Reference in New Issue
Block a user