forked from yannh/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
14fea75
commit 7422304
Showing
372 changed files
with
44,656 additions
and
4 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
Oops, something went wrong.