Skip to content

Commit

Permalink
Adding new schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksoncage committed Nov 13, 2022
1 parent 14fea75 commit 7422304
Show file tree
Hide file tree
Showing 372 changed files with 44,656 additions and 4 deletions.
602 changes: 602 additions & 0 deletions master-local/_definitions.json

Large diffs are not rendered by default.

63 changes: 63 additions & 0 deletions master-local/all.json
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,9 @@
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.CinderVolumeSource"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ClaimSource"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ClientIPConfig"
},
Expand Down Expand Up @@ -774,6 +777,9 @@
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodReadinessGate"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodResourceClaim"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodSchedulingGate"
},
Expand Down Expand Up @@ -834,6 +840,9 @@
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ReplicationControllerStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceClaim"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceFieldSelector"
},
Expand Down Expand Up @@ -1293,6 +1302,60 @@
{
"$ref": "_definitions.json#/definitions/io.k8s.api.rbac.v1.Subject"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.AllocationResult"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.PodSchedulingList"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.PodSchedulingSpec"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.PodSchedulingStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimConsumerReference"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimList"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimParametersReference"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimSchedulingStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimSpec"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplateList"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplateSpec"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.ResourceClassList"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.ResourceClassParametersReference"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.scheduling.v1.PriorityClass"
},
Expand Down
25 changes: 25 additions & 0 deletions master-local/allocationresult-resource-v1alpha1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"description": "AllocationResult contains attributed of an allocated resource.",
"properties": {
"availableOnNodes": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.NodeSelector",
"description": "This field will get set by the resource driver after it has allocated the resource driver to inform the scheduler where it can schedule Pods using the ResourceClaim.\n\nSetting this field is optional. If null, the resource is available everywhere."
},
"resourceHandle": {
"description": "ResourceHandle contains arbitrary data returned by the driver after a successful allocation. This is opaque for Kubernetes. Driver documentation may explain to users how to interpret this data if needed.\n\nThe maximum size of this field is 16KiB. This may get increased in the future, but not reduced.",
"type": [
"string",
"null"
]
},
"shareable": {
"description": "Shareable determines whether the resource supports more than one consumer at a time.",
"type": [
"boolean",
"null"
]
}
},
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
25 changes: 25 additions & 0 deletions master-local/allocationresult.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"description": "AllocationResult contains attributed of an allocated resource.",
"properties": {
"availableOnNodes": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.NodeSelector",
"description": "This field will get set by the resource driver after it has allocated the resource driver to inform the scheduler where it can schedule Pods using the ResourceClaim.\n\nSetting this field is optional. If null, the resource is available everywhere."
},
"resourceHandle": {
"description": "ResourceHandle contains arbitrary data returned by the driver after a successful allocation. This is opaque for Kubernetes. Driver documentation may explain to users how to interpret this data if needed.\n\nThe maximum size of this field is 16KiB. This may get increased in the future, but not reduced.",
"type": [
"string",
"null"
]
},
"shareable": {
"description": "Shareable determines whether the resource supports more than one consumer at a time.",
"type": [
"boolean",
"null"
]
}
},
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
21 changes: 21 additions & 0 deletions master-local/claimsource-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"description": "ClaimSource describes a reference to a ResourceClaim.\n\nExactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value.",
"properties": {
"resourceClaimName": {
"description": "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.",
"type": [
"string",
"null"
]
},
"resourceClaimTemplateName": {
"description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be <pod name>-<resource name>, where <resource name> is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long).\n\nAn existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.",
"type": [
"string",
"null"
]
}
},
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
21 changes: 21 additions & 0 deletions master-local/claimsource.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"description": "ClaimSource describes a reference to a ResourceClaim.\n\nExactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value.",
"properties": {
"resourceClaimName": {
"description": "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.",
"type": [
"string",
"null"
]
},
"resourceClaimTemplateName": {
"description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be <pod name>-<resource name>, where <resource name> is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long).\n\nAn existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.",
"type": [
"string",
"null"
]
}
},
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
6 changes: 6 additions & 0 deletions master-local/deleteoptions-meta-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"rbac.authorization.k8s.io/v1",
"rbac.authorization.k8s.io/v1alpha1",
"rbac.authorization.k8s.io/v1beta1",
"resource.k8s.io/v1alpha1",
"scheduling.k8s.io/v1",
"scheduling.k8s.io/v1alpha1",
"scheduling.k8s.io/v1beta1",
Expand Down Expand Up @@ -368,6 +369,11 @@
"kind": "DeleteOptions",
"version": "v1beta1"
},
{
"group": "resource.k8s.io",
"kind": "DeleteOptions",
"version": "v1alpha1"
},
{
"group": "scheduling.k8s.io",
"kind": "DeleteOptions",
Expand Down
5 changes: 5 additions & 0 deletions master-local/deleteoptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,11 @@
"kind": "DeleteOptions",
"version": "v1beta1"
},
{
"group": "resource.k8s.io",
"kind": "DeleteOptions",
"version": "v1alpha1"
},
{
"group": "scheduling.k8s.io",
"kind": "DeleteOptions",
Expand Down
7 changes: 7 additions & 0 deletions master-local/poddisruptionbudgetspec-policy-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector",
"description": "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.",
"x-kubernetes-patch-strategy": "replace"
},
"unhealthyPodEvictionPolicy": {
"description": "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\n\nThis field is alpha-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (disabled by default).",
"type": [
"string",
"null"
]
}
},
"type": "object",
Expand Down
7 changes: 7 additions & 0 deletions master-local/poddisruptionbudgetspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector",
"description": "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.",
"x-kubernetes-patch-strategy": "replace"
},
"unhealthyPodEvictionPolicy": {
"description": "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\n\nThis field is alpha-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (disabled by default).",
"type": [
"string",
"null"
]
}
},
"type": "object",
Expand Down
21 changes: 21 additions & 0 deletions master-local/podresourceclaim-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"description": "PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.",
"properties": {
"name": {
"description": "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.",
"type": [
"string",
"null"
]
},
"source": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ClaimSource",
"description": "Source describes where to find the ResourceClaim."
}
},
"required": [
"name"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
21 changes: 21 additions & 0 deletions master-local/podresourceclaim.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"description": "PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.",
"properties": {
"name": {
"description": "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.",
"type": [
"string",
"null"
]
},
"source": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ClaimSource",
"description": "Source describes where to find the ResourceClaim."
}
},
"required": [
"name"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
49 changes: 49 additions & 0 deletions master-local/podscheduling-resource-v1alpha1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"description": "PodScheduling objects hold information that is needed to schedule a Pod with ResourceClaims that use \"WaitForFirstConsumer\" allocation mode.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.",
"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": [
"resource.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": [
"PodScheduling"
]
},
"metadata": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta",
"description": "Standard object metadata"
},
"spec": {
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.PodSchedulingSpec",
"description": "Spec describes where resources for the Pod are needed."
},
"status": {
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.PodSchedulingStatus",
"description": "Status describes where resources for the Pod can be allocated."
}
},
"required": [
"spec"
],
"type": "object",
"x-kubernetes-group-version-kind": [
{
"group": "resource.k8s.io",
"kind": "PodScheduling",
"version": "v1alpha1"
}
],
"$schema": "http://json-schema.org/schema#"
}
46 changes: 46 additions & 0 deletions master-local/podscheduling.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"description": "PodScheduling objects hold information that is needed to schedule a Pod with ResourceClaims that use \"WaitForFirstConsumer\" allocation mode.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.",
"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": [
"PodScheduling"
]
},
"metadata": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta",
"description": "Standard object metadata"
},
"spec": {
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.PodSchedulingSpec",
"description": "Spec describes where resources for the Pod are needed."
},
"status": {
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha1.PodSchedulingStatus",
"description": "Status describes where resources for the Pod can be allocated."
}
},
"required": [
"spec"
],
"type": "object",
"x-kubernetes-group-version-kind": [
{
"group": "resource.k8s.io",
"kind": "PodScheduling",
"version": "v1alpha1"
}
],
"$schema": "http://json-schema.org/schema#"
}
Loading

0 comments on commit 7422304

Please sign in to comment.