Skip to content

Commit

Permalink
Adding new schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksoncage committed Mar 1, 2023
1 parent ef717e4 commit dd7cdfc
Show file tree
Hide file tree
Showing 16,388 changed files with 6,942,977 additions and 828 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
117 changes: 83 additions & 34 deletions master-local/_definitions.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions master-local/all.json
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ContainerPort"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ContainerResizePolicy"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ContainerState"
},
Expand Down
11 changes: 11 additions & 0 deletions master-local/container-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,17 @@
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.Probe",
"description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"
},
"resizePolicy": {
"description": "Resources resize policy for the container.",
"items": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ContainerResizePolicy"
},
"type": [
"array",
"null"
],
"x-kubernetes-list-type": "atomic"
},
"resources": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements",
"description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Expand Down
11 changes: 11 additions & 0 deletions master-local/container.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,17 @@
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.Probe",
"description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"
},
"resizePolicy": {
"description": "Resources resize policy for the container.",
"items": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ContainerResizePolicy"
},
"type": [
"array",
"null"
],
"x-kubernetes-list-type": "atomic"
},
"resources": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements",
"description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Expand Down
25 changes: 25 additions & 0 deletions master-local/containerresizepolicy-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"description": "ContainerResizePolicy represents resource resize policy for a single container.",
"properties": {
"policy": {
"description": "Resource resize policy applicable to the specified resource name. If not specified, it defaults to RestartNotRequired.",
"type": [
"string",
"null"
]
},
"resourceName": {
"description": "Name of the resource type to which this resource resize policy applies. Supported values: cpu, memory.",
"type": [
"string",
"null"
]
}
},
"required": [
"resourceName",
"policy"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
25 changes: 25 additions & 0 deletions master-local/containerresizepolicy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"description": "ContainerResizePolicy represents resource resize policy for a single container.",
"properties": {
"policy": {
"description": "Resource resize policy applicable to the specified resource name. If not specified, it defaults to RestartNotRequired.",
"type": [
"string",
"null"
]
},
"resourceName": {
"description": "Name of the resource type to which this resource resize policy applies. Supported values: cpu, memory.",
"type": [
"string",
"null"
]
}
},
"required": [
"resourceName",
"policy"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
"properties": {
"container": {
"description": "Container is the name of the container in the pods of the scaling target",
"description": "container is the name of the container in the pods of the scaling target",
"type": [
"string",
"null"
Expand All @@ -13,7 +13,7 @@
"description": "current contains the current value for the given metric"
},
"name": {
"description": "Name is the name of the resource in question.",
"description": "name is the name of the resource in question.",
"type": [
"string",
"null"
Expand Down
4 changes: 2 additions & 2 deletions master-local/containerresourcemetricstatus.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
"properties": {
"container": {
"description": "Container is the name of the container in the pods of the scaling target",
"description": "container is the name of the container in the pods of the scaling target",
"type": [
"string",
"null"
Expand All @@ -13,7 +13,7 @@
"description": "current contains the current value for the given metric"
},
"name": {
"description": "Name is the name of the resource in question.",
"description": "name is the name of the resource in question.",
"type": [
"string",
"null"
Expand Down
14 changes: 14 additions & 0 deletions master-local/containerstatus-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@
"null"
]
},
"resources": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements",
"description": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized."
},
"resourcesAllocated": {
"additionalProperties": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity"
},
"description": "ResourcesAllocated represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.",
"type": [
"object",
"null"
]
},
"restartCount": {
"description": "The number of times the container has been restarted.",
"format": "int32",
Expand Down
14 changes: 14 additions & 0 deletions master-local/containerstatus.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@
"null"
]
},
"resources": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements",
"description": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized."
},
"resourcesAllocated": {
"additionalProperties": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity"
},
"description": "ResourcesAllocated represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.",
"type": [
"object",
"null"
]
},
"restartCount": {
"description": "The number of times the container has been restarted.",
"format": "int32",
Expand Down
6 changes: 3 additions & 3 deletions master-local/crossversionobjectreference-autoscaling-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
"description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
"properties": {
"apiVersion": {
"description": "API version of the referent",
"description": "apiVersion is the API version of the referent",
"type": [
"string",
"null"
]
},
"kind": {
"description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": [
"string",
"null"
]
},
"name": {
"description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
"description": "name is the name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
"type": [
"string",
"null"
Expand Down
6 changes: 3 additions & 3 deletions master-local/crossversionobjectreference-autoscaling-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
"description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
"properties": {
"apiVersion": {
"description": "API version of the referent",
"description": "apiVersion is the API version of the referent",
"type": [
"string",
"null"
]
},
"kind": {
"description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": [
"string",
"null"
]
},
"name": {
"description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
"description": "name is the name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
"type": [
"string",
"null"
Expand Down
6 changes: 3 additions & 3 deletions master-local/crossversionobjectreference.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
"description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
"properties": {
"apiVersion": {
"description": "API version of the referent",
"description": "apiVersion is the API version of the referent",
"type": [
"string",
"null"
]
},
"kind": {
"description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": [
"string",
"null"
]
},
"name": {
"description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
"description": "name is the name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
"type": [
"string",
"null"
Expand Down
2 changes: 1 addition & 1 deletion master-local/daemonsetspec-apps-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"template": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodTemplateSpec",
"description": "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template"
"description": "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template"
},
"updateStrategy": {
"$ref": "_definitions.json#/definitions/io.k8s.api.apps.v1.DaemonSetUpdateStrategy",
Expand Down
2 changes: 1 addition & 1 deletion master-local/daemonsetspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"template": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodTemplateSpec",
"description": "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template"
"description": "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template"
},
"updateStrategy": {
"$ref": "_definitions.json#/definitions/io.k8s.api.apps.v1.DaemonSetUpdateStrategy",
Expand Down
2 changes: 1 addition & 1 deletion master-local/deploymentspec-apps-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"template": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodTemplateSpec",
"description": "Template describes the pods that will be created."
"description": "Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is \"Always\"."
}
},
"required": [
Expand Down
2 changes: 1 addition & 1 deletion master-local/deploymentspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"template": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodTemplateSpec",
"description": "Template describes the pods that will be created."
"description": "Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is \"Always\"."
}
},
"required": [
Expand Down
11 changes: 11 additions & 0 deletions master-local/ephemeralcontainer-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,17 @@
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.Probe",
"description": "Probes are not allowed for ephemeral containers."
},
"resizePolicy": {
"description": "Resources resize policy for the container.",
"items": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ContainerResizePolicy"
},
"type": [
"array",
"null"
],
"x-kubernetes-list-type": "atomic"
},
"resources": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements",
"description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod."
Expand Down
11 changes: 11 additions & 0 deletions master-local/ephemeralcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,17 @@
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.Probe",
"description": "Probes are not allowed for ephemeral containers."
},
"resizePolicy": {
"description": "Resources resize policy for the container.",
"items": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ContainerResizePolicy"
},
"type": [
"array",
"null"
],
"x-kubernetes-list-type": "atomic"
},
"resources": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements",
"description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod."
Expand Down
4 changes: 2 additions & 2 deletions master-local/horizontalpodautoscaler-autoscaling-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
},
"spec": {
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec",
"description": "behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status."
"description": "spec defines the behaviour of autoscaler. 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.autoscaling.v1.HorizontalPodAutoscalerStatus",
"description": "current information about the autoscaler."
"description": "status is the current information about the autoscaler."
}
},
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
]
},
"items": {
"description": "list of horizontal pod autoscaler objects.",
"description": "items is the list of horizontal pod autoscaler objects.",
"items": {
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler"
},
Expand Down
4 changes: 2 additions & 2 deletions master-local/horizontalpodautoscalerspec-autoscaling-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "specification of a horizontal pod autoscaler.",
"properties": {
"maxReplicas": {
"description": "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.",
"description": "maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.",
"format": "int32",
"type": [
"integer",
Expand All @@ -22,7 +22,7 @@
"description": "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource."
},
"targetCPUUtilizationPercentage": {
"description": "target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.",
"description": "targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.",
"format": "int32",
"type": [
"integer",
Expand Down
Loading

0 comments on commit dd7cdfc

Please sign in to comment.