Skip to content

Commit

Permalink
Adding new schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Yann Hamon committed Jul 25, 2024
1 parent 6ec200e commit b5d36d0
Show file tree
Hide file tree
Showing 240 changed files with 5,570 additions and 260 deletions.
145 changes: 139 additions & 6 deletions master-local/_definitions.json

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions master-local/all.json
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,9 @@
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceFieldSelector"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceHealth"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceQuota"
},
Expand All @@ -1047,6 +1050,9 @@
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.SELinuxOptions"
},
Expand Down Expand Up @@ -1689,6 +1695,12 @@
{
"$ref": "_definitions.json#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttributesClassList"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClassList"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.storagemigration.v1alpha1.GroupVersionResource"
},
Expand Down
16 changes: 16 additions & 0 deletions master-local/containerstatus-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,22 @@
"null"
]
},
"allocatedResourcesStatus": {
"description": "AllocatedResourcesStatus represents the status of various resources allocated for this Pod.",
"items": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceStatus"
},
"type": [
"array",
"null"
],
"x-kubernetes-list-map-keys": [
"name"
],
"x-kubernetes-list-type": "map",
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge"
},
"containerID": {
"description": "ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").",
"type": [
Expand Down
16 changes: 16 additions & 0 deletions master-local/containerstatus.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,22 @@
"null"
]
},
"allocatedResourcesStatus": {
"description": "AllocatedResourcesStatus represents the status of various resources allocated for this Pod.",
"items": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceStatus"
},
"type": [
"array",
"null"
],
"x-kubernetes-list-map-keys": [
"name"
],
"x-kubernetes-list-type": "map",
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge"
},
"containerID": {
"description": "ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").",
"type": [
Expand Down
2 changes: 1 addition & 1 deletion master-local/jobspec-batch-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
},
"successPolicy": {
"$ref": "_definitions.json#/definitions/io.k8s.api.batch.v1.SuccessPolicy",
"description": "successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.\n\nThis field is alpha-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (disabled by default)."
"description": "successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.\n\nThis field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default)."
},
"suspend": {
"description": "suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.",
Expand Down
2 changes: 1 addition & 1 deletion master-local/jobspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
},
"successPolicy": {
"$ref": "_definitions.json#/definitions/io.k8s.api.batch.v1.SuccessPolicy",
"description": "successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.\n\nThis field is alpha-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (disabled by default)."
"description": "successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.\n\nThis field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default)."
},
"suspend": {
"description": "suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.",
Expand Down
2 changes: 1 addition & 1 deletion master-local/persistentvolumeclaimspec-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
]
},
"volumeAttributesClassName": {
"description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled.",
"description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).",
"type": [
"string",
"null"
Expand Down
2 changes: 1 addition & 1 deletion master-local/persistentvolumeclaimspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
]
},
"volumeAttributesClassName": {
"description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled.",
"description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).",
"type": [
"string",
"null"
Expand Down
4 changes: 2 additions & 2 deletions master-local/persistentvolumeclaimstatus-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@
"x-kubernetes-patch-strategy": "merge"
},
"currentVolumeAttributesClassName": {
"description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is an alpha field and requires enabling VolumeAttributesClass feature.",
"description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default).",
"type": [
"string",
"null"
]
},
"modifyVolumeStatus": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ModifyVolumeStatus",
"description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is an alpha field and requires enabling VolumeAttributesClass feature."
"description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is a beta field and requires enabling VolumeAttributesClass feature (off by default)."
},
"phase": {
"description": "phase represents the current phase of PersistentVolumeClaim.",
Expand Down
4 changes: 2 additions & 2 deletions master-local/persistentvolumeclaimstatus.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@
"x-kubernetes-patch-strategy": "merge"
},
"currentVolumeAttributesClassName": {
"description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is an alpha field and requires enabling VolumeAttributesClass feature.",
"description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default).",
"type": [
"string",
"null"
]
},
"modifyVolumeStatus": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ModifyVolumeStatus",
"description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is an alpha field and requires enabling VolumeAttributesClass feature."
"description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is a beta field and requires enabling VolumeAttributesClass feature (off by default)."
},
"phase": {
"description": "phase represents the current phase of PersistentVolumeClaim.",
Expand Down
2 changes: 1 addition & 1 deletion master-local/persistentvolumespec-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"description": "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md"
},
"volumeAttributesClassName": {
"description": "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is an alpha field and requires enabling VolumeAttributesClass feature.",
"description": "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).",
"type": [
"string",
"null"
Expand Down
2 changes: 1 addition & 1 deletion master-local/persistentvolumespec.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"description": "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md"
},
"volumeAttributesClassName": {
"description": "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is an alpha field and requires enabling VolumeAttributesClass feature.",
"description": "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).",
"type": [
"string",
"null"
Expand Down
24 changes: 24 additions & 0 deletions master-local/resourcehealth-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"description": "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680 and historical health changes are planned to be added in future iterations of a KEP.",
"properties": {
"health": {
"description": "Health of the resource. can be one of:\n - Healthy: operates as normal\n - Unhealthy: reported unhealthy. We consider this a temporary health issue\n since we do not have a mechanism today to distinguish\n temporary and permanent issues.\n - Unknown: The status cannot be determined.\n For example, Device Plugin got unregistered and hasn't been re-registered since.\n\nIn future we may want to introduce the PermanentlyUnhealthy Status.",
"type": [
"string",
"null"
]
},
"resourceID": {
"description": "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.",
"type": [
"string",
"null"
]
}
},
"required": [
"resourceID"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
24 changes: 24 additions & 0 deletions master-local/resourcehealth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"description": "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680 and historical health changes are planned to be added in future iterations of a KEP.",
"properties": {
"health": {
"description": "Health of the resource. can be one of:\n - Healthy: operates as normal\n - Unhealthy: reported unhealthy. We consider this a temporary health issue\n since we do not have a mechanism today to distinguish\n temporary and permanent issues.\n - Unknown: The status cannot be determined.\n For example, Device Plugin got unregistered and hasn't been re-registered since.\n\nIn future we may want to introduce the PermanentlyUnhealthy Status.",
"type": [
"string",
"null"
]
},
"resourceID": {
"description": "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.",
"type": [
"string",
"null"
]
}
},
"required": [
"resourceID"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
30 changes: 30 additions & 0 deletions master-local/resourcestatus-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"properties": {
"name": {
"description": "Name of the resource. Must be unique within the pod and match one of the resources from the pod spec.",
"type": [
"string",
"null"
]
},
"resources": {
"description": "List of unique Resources health. Each element in the list contains an unique resource ID and resource health. At a minimum, ResourceID must uniquely identify the Resource allocated to the Pod on the Node for the lifetime of a Pod. See ResourceID type for it's definition.",
"items": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceHealth"
},
"type": [
"array",
"null"
],
"x-kubernetes-list-map-keys": [
"resourceID"
],
"x-kubernetes-list-type": "map"
}
},
"required": [
"name"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
Loading

0 comments on commit b5d36d0

Please sign in to comment.