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 Nov 1, 2023
1 parent b51cca2 commit c64f514
Show file tree
Hide file tree
Showing 248 changed files with 10,583 additions and 8 deletions.
221 changes: 220 additions & 1 deletion master-local/_definitions.json

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions master-local/all.json
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,9 @@
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.LocalVolumeSource"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ModifyVolumeStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.NFSVolumeSource"
},
Expand Down Expand Up @@ -1422,6 +1425,18 @@
{
"$ref": "_definitions.json#/definitions/io.k8s.api.networking.v1alpha1.ParentReference"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDRList"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDRSpec"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDRStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.node.v1.Overhead"
},
Expand Down Expand Up @@ -1605,6 +1620,12 @@
{
"$ref": "_definitions.json#/definitions/io.k8s.api.storage.v1.VolumeNodeResources"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttributesClass"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttributesClassList"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition"
},
Expand Down
2 changes: 1 addition & 1 deletion master-local/csipersistentvolumesource-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"nodeExpandSecretRef": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.SecretReference",
"description": "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This is a beta field which is enabled default by CSINodeExpandSecret feature gate. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed."
"description": "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed."
},
"nodePublishSecretRef": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.SecretReference",
Expand Down
2 changes: 1 addition & 1 deletion master-local/csipersistentvolumesource.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"nodeExpandSecretRef": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.SecretReference",
"description": "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This is a beta field which is enabled default by CSINodeExpandSecret feature gate. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed."
"description": "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed."
},
"nodePublishSecretRef": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.SecretReference",
Expand Down
24 changes: 24 additions & 0 deletions master-local/modifyvolumestatus-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation",
"properties": {
"status": {
"description": "status is the status of the ControllerModifyVolume operation. It can be in any of following states:\n - Pending\n Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as\n the specified VolumeAttributesClass not existing.\n - InProgress\n InProgress indicates that the volume is being modified.\n - Infeasible\n Infeasible indicates that the request has been rejected as invalid by the CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass needs to be specified.\nNote: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.",
"type": [
"string",
"null"
]
},
"targetVolumeAttributesClassName": {
"description": "targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled",
"type": [
"string",
"null"
]
}
},
"required": [
"status"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
24 changes: 24 additions & 0 deletions master-local/modifyvolumestatus.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation",
"properties": {
"status": {
"description": "status is the status of the ControllerModifyVolume operation. It can be in any of following states:\n - Pending\n Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as\n the specified VolumeAttributesClass not existing.\n - InProgress\n InProgress indicates that the volume is being modified.\n - Infeasible\n Infeasible indicates that the request has been rejected as invalid by the CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass needs to be specified.\nNote: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.",
"type": [
"string",
"null"
]
},
"targetVolumeAttributesClassName": {
"description": "targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled",
"type": [
"string",
"null"
]
}
},
"required": [
"status"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
7 changes: 7 additions & 0 deletions master-local/persistentvolumeclaimspec-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
"null"
]
},
"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/persistent-volumes#volumeattributesclass (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled.",
"type": [
"string",
"null"
]
},
"volumeMode": {
"description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.",
"type": [
Expand Down
7 changes: 7 additions & 0 deletions master-local/persistentvolumeclaimspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
"null"
]
},
"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/persistent-volumes#volumeattributesclass (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled.",
"type": [
"string",
"null"
]
},
"volumeMode": {
"description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.",
"type": [
Expand Down
11 changes: 11 additions & 0 deletions master-local/persistentvolumeclaimstatus-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@
"x-kubernetes-patch-merge-key": "type",
"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.",
"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."
},
"phase": {
"description": "phase represents the current phase of PersistentVolumeClaim.",
"type": [
Expand Down
11 changes: 11 additions & 0 deletions master-local/persistentvolumeclaimstatus.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@
"x-kubernetes-patch-merge-key": "type",
"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.",
"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."
},
"phase": {
"description": "phase represents the current phase of PersistentVolumeClaim.",
"type": [
Expand Down
7 changes: 7 additions & 0 deletions master-local/persistentvolumespec-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.StorageOSPersistentVolumeSource",
"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.",
"type": [
"string",
"null"
]
},
"volumeMode": {
"description": "volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.",
"type": [
Expand Down
7 changes: 7 additions & 0 deletions master-local/persistentvolumespec.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.StorageOSPersistentVolumeSource",
"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.",
"type": [
"string",
"null"
]
},
"volumeMode": {
"description": "volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.",
"type": [
Expand Down
46 changes: 46 additions & 0 deletions master-local/servicecidr-networking-v1alpha1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"description": "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": [
"string",
"null"
],
"enum": [
"networking.k8s.io/v1alpha1"
]
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": [
"string",
"null"
],
"enum": [
"ServiceCIDR"
]
},
"metadata": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta",
"description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
},
"spec": {
"$ref": "_definitions.json#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDRSpec",
"description": "spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status"
},
"status": {
"$ref": "_definitions.json#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDRStatus",
"description": "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status"
}
},
"type": "object",
"x-kubernetes-group-version-kind": [
{
"group": "networking.k8s.io",
"kind": "ServiceCIDR",
"version": "v1alpha1"
}
],
"$schema": "http://json-schema.org/schema#"
}
43 changes: 43 additions & 0 deletions master-local/servicecidr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"description": "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": [
"string",
"null"
]
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": [
"string",
"null"
],
"enum": [
"ServiceCIDR"
]
},
"metadata": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta",
"description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
},
"spec": {
"$ref": "_definitions.json#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDRSpec",
"description": "spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status"
},
"status": {
"$ref": "_definitions.json#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDRStatus",
"description": "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status"
}
},
"type": "object",
"x-kubernetes-group-version-kind": [
{
"group": "networking.k8s.io",
"kind": "ServiceCIDR",
"version": "v1alpha1"
}
],
"$schema": "http://json-schema.org/schema#"
}
51 changes: 51 additions & 0 deletions master-local/servicecidrlist-networking-v1alpha1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"description": "ServiceCIDRList contains a list of ServiceCIDR objects.",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": [
"string",
"null"
],
"enum": [
"networking.k8s.io/v1alpha1"
]
},
"items": {
"description": "items is the list of ServiceCIDRs.",
"items": {
"$ref": "_definitions.json#/definitions/io.k8s.api.networking.v1alpha1.ServiceCIDR"
},
"type": [
"array",
"null"
]
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": [
"string",
"null"
],
"enum": [
"ServiceCIDRList"
]
},
"metadata": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta",
"description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
}
},
"required": [
"items"
],
"type": "object",
"x-kubernetes-group-version-kind": [
{
"group": "networking.k8s.io",
"kind": "ServiceCIDRList",
"version": "v1alpha1"
}
],
"$schema": "http://json-schema.org/schema#"
}
Loading

0 comments on commit c64f514

Please sign in to comment.