Make CustomResourceDefinitionStatus fields optional

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
This commit is contained in:
hasheddan 2020-01-14 15:45:10 -06:00
parent 36e40fb850
commit ee1f0b8a38
5 changed files with 8 additions and 8 deletions

View File

@ -15409,10 +15409,6 @@
"type": "array"
}
},
"required": [
"acceptedNames",
"storedVersions"
],
"type": "object"
},
"io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion": {
@ -16053,10 +16049,6 @@
"type": "array"
}
},
"required": [
"acceptedNames",
"storedVersions"
],
"type": "object"
},
"io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion": {

View File

@ -238,6 +238,7 @@ message CustomResourceDefinitionStatus {
// acceptedNames are the names that are actually being used to serve discovery.
// They may be different than the names in spec.
// +optional
optional CustomResourceDefinitionNames acceptedNames = 2;
// storedVersions lists all versions of CustomResources that were ever persisted. Tracking these
@ -246,6 +247,7 @@ message CustomResourceDefinitionStatus {
// no old objects are left in storage), and then remove the rest of the
// versions from this list.
// Versions may not be removed from `spec.versions` while they exist in this list.
// +optional
repeated string storedVersions = 3;
}

View File

@ -322,6 +322,7 @@ type CustomResourceDefinitionStatus struct {
// acceptedNames are the names that are actually being used to serve discovery.
// They may be different than the names in spec.
// +optional
AcceptedNames CustomResourceDefinitionNames `json:"acceptedNames" protobuf:"bytes,2,opt,name=acceptedNames"`
// storedVersions lists all versions of CustomResources that were ever persisted. Tracking these
@ -330,6 +331,7 @@ type CustomResourceDefinitionStatus struct {
// no old objects are left in storage), and then remove the rest of the
// versions from this list.
// Versions may not be removed from `spec.versions` while they exist in this list.
// +optional
StoredVersions []string `json:"storedVersions" protobuf:"bytes,3,rep,name=storedVersions"`
}

View File

@ -284,6 +284,7 @@ message CustomResourceDefinitionStatus {
// acceptedNames are the names that are actually being used to serve discovery.
// They may be different than the names in spec.
// +optional
optional CustomResourceDefinitionNames acceptedNames = 2;
// storedVersions lists all versions of CustomResources that were ever persisted. Tracking these
@ -292,6 +293,7 @@ message CustomResourceDefinitionStatus {
// no old objects are left in storage), and then remove the rest of the
// versions from this list.
// Versions may not be removed from `spec.versions` while they exist in this list.
// +optional
repeated string storedVersions = 3;
}

View File

@ -354,6 +354,7 @@ type CustomResourceDefinitionStatus struct {
// acceptedNames are the names that are actually being used to serve discovery.
// They may be different than the names in spec.
// +optional
AcceptedNames CustomResourceDefinitionNames `json:"acceptedNames" protobuf:"bytes,2,opt,name=acceptedNames"`
// storedVersions lists all versions of CustomResources that were ever persisted. Tracking these
@ -362,6 +363,7 @@ type CustomResourceDefinitionStatus struct {
// no old objects are left in storage), and then remove the rest of the
// versions from this list.
// Versions may not be removed from `spec.versions` while they exist in this list.
// +optional
StoredVersions []string `json:"storedVersions" protobuf:"bytes,3,rep,name=storedVersions"`
}