mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Make CustomResourceDefinitionStatus fields optional
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
This commit is contained in:
parent
36e40fb850
commit
ee1f0b8a38
8
api/openapi-spec/swagger.json
generated
8
api/openapi-spec/swagger.json
generated
@ -15409,10 +15409,6 @@
|
|||||||
"type": "array"
|
"type": "array"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
|
||||||
"acceptedNames",
|
|
||||||
"storedVersions"
|
|
||||||
],
|
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion": {
|
"io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion": {
|
||||||
@ -16053,10 +16049,6 @@
|
|||||||
"type": "array"
|
"type": "array"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
|
||||||
"acceptedNames",
|
|
||||||
"storedVersions"
|
|
||||||
],
|
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion": {
|
"io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion": {
|
||||||
|
@ -238,6 +238,7 @@ message CustomResourceDefinitionStatus {
|
|||||||
|
|
||||||
// acceptedNames are the names that are actually being used to serve discovery.
|
// acceptedNames are the names that are actually being used to serve discovery.
|
||||||
// They may be different than the names in spec.
|
// They may be different than the names in spec.
|
||||||
|
// +optional
|
||||||
optional CustomResourceDefinitionNames acceptedNames = 2;
|
optional CustomResourceDefinitionNames acceptedNames = 2;
|
||||||
|
|
||||||
// storedVersions lists all versions of CustomResources that were ever persisted. Tracking these
|
// 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
|
// no old objects are left in storage), and then remove the rest of the
|
||||||
// versions from this list.
|
// versions from this list.
|
||||||
// Versions may not be removed from `spec.versions` while they exist in this list.
|
// Versions may not be removed from `spec.versions` while they exist in this list.
|
||||||
|
// +optional
|
||||||
repeated string storedVersions = 3;
|
repeated string storedVersions = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -322,6 +322,7 @@ type CustomResourceDefinitionStatus struct {
|
|||||||
|
|
||||||
// acceptedNames are the names that are actually being used to serve discovery.
|
// acceptedNames are the names that are actually being used to serve discovery.
|
||||||
// They may be different than the names in spec.
|
// They may be different than the names in spec.
|
||||||
|
// +optional
|
||||||
AcceptedNames CustomResourceDefinitionNames `json:"acceptedNames" protobuf:"bytes,2,opt,name=acceptedNames"`
|
AcceptedNames CustomResourceDefinitionNames `json:"acceptedNames" protobuf:"bytes,2,opt,name=acceptedNames"`
|
||||||
|
|
||||||
// storedVersions lists all versions of CustomResources that were ever persisted. Tracking these
|
// 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
|
// no old objects are left in storage), and then remove the rest of the
|
||||||
// versions from this list.
|
// versions from this list.
|
||||||
// Versions may not be removed from `spec.versions` while they exist in 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"`
|
StoredVersions []string `json:"storedVersions" protobuf:"bytes,3,rep,name=storedVersions"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -284,6 +284,7 @@ message CustomResourceDefinitionStatus {
|
|||||||
|
|
||||||
// acceptedNames are the names that are actually being used to serve discovery.
|
// acceptedNames are the names that are actually being used to serve discovery.
|
||||||
// They may be different than the names in spec.
|
// They may be different than the names in spec.
|
||||||
|
// +optional
|
||||||
optional CustomResourceDefinitionNames acceptedNames = 2;
|
optional CustomResourceDefinitionNames acceptedNames = 2;
|
||||||
|
|
||||||
// storedVersions lists all versions of CustomResources that were ever persisted. Tracking these
|
// 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
|
// no old objects are left in storage), and then remove the rest of the
|
||||||
// versions from this list.
|
// versions from this list.
|
||||||
// Versions may not be removed from `spec.versions` while they exist in this list.
|
// Versions may not be removed from `spec.versions` while they exist in this list.
|
||||||
|
// +optional
|
||||||
repeated string storedVersions = 3;
|
repeated string storedVersions = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -354,6 +354,7 @@ type CustomResourceDefinitionStatus struct {
|
|||||||
|
|
||||||
// acceptedNames are the names that are actually being used to serve discovery.
|
// acceptedNames are the names that are actually being used to serve discovery.
|
||||||
// They may be different than the names in spec.
|
// They may be different than the names in spec.
|
||||||
|
// +optional
|
||||||
AcceptedNames CustomResourceDefinitionNames `json:"acceptedNames" protobuf:"bytes,2,opt,name=acceptedNames"`
|
AcceptedNames CustomResourceDefinitionNames `json:"acceptedNames" protobuf:"bytes,2,opt,name=acceptedNames"`
|
||||||
|
|
||||||
// storedVersions lists all versions of CustomResources that were ever persisted. Tracking these
|
// 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
|
// no old objects are left in storage), and then remove the rest of the
|
||||||
// versions from this list.
|
// versions from this list.
|
||||||
// Versions may not be removed from `spec.versions` while they exist in 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"`
|
StoredVersions []string `json:"storedVersions" protobuf:"bytes,3,rep,name=storedVersions"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user