Skip to content

Commit 5de47bd

Browse files
author
Yann Hamon
committed
Adding new schemas
1 parent e9d1ca2 commit 5de47bd

File tree

16,388 files changed

+6942977
-828
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

16,388 files changed

+6942977
-828
lines changed

master-local/_definitions.json

Lines changed: 83 additions & 34 deletions
Large diffs are not rendered by default.

master-local/all.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,9 @@
489489
{
490490
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ContainerPort"
491491
},
492+
{
493+
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ContainerResizePolicy"
494+
},
492495
{
493496
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ContainerState"
494497
},

master-local/container-v1.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,17 @@
9999
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.Probe",
100100
"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"
101101
},
102+
"resizePolicy": {
103+
"description": "Resources resize policy for the container.",
104+
"items": {
105+
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ContainerResizePolicy"
106+
},
107+
"type": [
108+
"array",
109+
"null"
110+
],
111+
"x-kubernetes-list-type": "atomic"
112+
},
102113
"resources": {
103114
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements",
104115
"description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"

master-local/container.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,17 @@
9999
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.Probe",
100100
"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"
101101
},
102+
"resizePolicy": {
103+
"description": "Resources resize policy for the container.",
104+
"items": {
105+
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ContainerResizePolicy"
106+
},
107+
"type": [
108+
"array",
109+
"null"
110+
],
111+
"x-kubernetes-list-type": "atomic"
112+
},
102113
"resources": {
103114
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements",
104115
"description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"description": "ContainerResizePolicy represents resource resize policy for a single container.",
3+
"properties": {
4+
"policy": {
5+
"description": "Resource resize policy applicable to the specified resource name. If not specified, it defaults to RestartNotRequired.",
6+
"type": [
7+
"string",
8+
"null"
9+
]
10+
},
11+
"resourceName": {
12+
"description": "Name of the resource type to which this resource resize policy applies. Supported values: cpu, memory.",
13+
"type": [
14+
"string",
15+
"null"
16+
]
17+
}
18+
},
19+
"required": [
20+
"resourceName",
21+
"policy"
22+
],
23+
"type": "object",
24+
"$schema": "http://json-schema.org/schema#"
25+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"description": "ContainerResizePolicy represents resource resize policy for a single container.",
3+
"properties": {
4+
"policy": {
5+
"description": "Resource resize policy applicable to the specified resource name. If not specified, it defaults to RestartNotRequired.",
6+
"type": [
7+
"string",
8+
"null"
9+
]
10+
},
11+
"resourceName": {
12+
"description": "Name of the resource type to which this resource resize policy applies. Supported values: cpu, memory.",
13+
"type": [
14+
"string",
15+
"null"
16+
]
17+
}
18+
},
19+
"required": [
20+
"resourceName",
21+
"policy"
22+
],
23+
"type": "object",
24+
"$schema": "http://json-schema.org/schema#"
25+
}

master-local/containerresourcemetricstatus-autoscaling-v2.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"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.",
33
"properties": {
44
"container": {
5-
"description": "Container is the name of the container in the pods of the scaling target",
5+
"description": "container is the name of the container in the pods of the scaling target",
66
"type": [
77
"string",
88
"null"
@@ -13,7 +13,7 @@
1313
"description": "current contains the current value for the given metric"
1414
},
1515
"name": {
16-
"description": "Name is the name of the resource in question.",
16+
"description": "name is the name of the resource in question.",
1717
"type": [
1818
"string",
1919
"null"

master-local/containerresourcemetricstatus.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"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.",
33
"properties": {
44
"container": {
5-
"description": "Container is the name of the container in the pods of the scaling target",
5+
"description": "container is the name of the container in the pods of the scaling target",
66
"type": [
77
"string",
88
"null"
@@ -13,7 +13,7 @@
1313
"description": "current contains the current value for the given metric"
1414
},
1515
"name": {
16-
"description": "Name is the name of the resource in question.",
16+
"description": "name is the name of the resource in question.",
1717
"type": [
1818
"string",
1919
"null"

master-local/containerstatus-v1.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,20 @@
4040
"null"
4141
]
4242
},
43+
"resources": {
44+
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements",
45+
"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."
46+
},
47+
"resourcesAllocated": {
48+
"additionalProperties": {
49+
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity"
50+
},
51+
"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.",
52+
"type": [
53+
"object",
54+
"null"
55+
]
56+
},
4357
"restartCount": {
4458
"description": "The number of times the container has been restarted.",
4559
"format": "int32",

master-local/containerstatus.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,20 @@
4040
"null"
4141
]
4242
},
43+
"resources": {
44+
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements",
45+
"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."
46+
},
47+
"resourcesAllocated": {
48+
"additionalProperties": {
49+
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity"
50+
},
51+
"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.",
52+
"type": [
53+
"object",
54+
"null"
55+
]
56+
},
4357
"restartCount": {
4458
"description": "The number of times the container has been restarted.",
4559
"format": "int32",

master-local/crossversionobjectreference-autoscaling-v1.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
"description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
33
"properties": {
44
"apiVersion": {
5-
"description": "API version of the referent",
5+
"description": "apiVersion is the API version of the referent",
66
"type": [
77
"string",
88
"null"
99
]
1010
},
1111
"kind": {
12-
"description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
12+
"description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
1313
"type": [
1414
"string",
1515
"null"
1616
]
1717
},
1818
"name": {
19-
"description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
19+
"description": "name is the name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
2020
"type": [
2121
"string",
2222
"null"

master-local/crossversionobjectreference-autoscaling-v2.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
"description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
33
"properties": {
44
"apiVersion": {
5-
"description": "API version of the referent",
5+
"description": "apiVersion is the API version of the referent",
66
"type": [
77
"string",
88
"null"
99
]
1010
},
1111
"kind": {
12-
"description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
12+
"description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
1313
"type": [
1414
"string",
1515
"null"
1616
]
1717
},
1818
"name": {
19-
"description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
19+
"description": "name is the name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
2020
"type": [
2121
"string",
2222
"null"

master-local/crossversionobjectreference.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
"description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
33
"properties": {
44
"apiVersion": {
5-
"description": "API version of the referent",
5+
"description": "apiVersion is the API version of the referent",
66
"type": [
77
"string",
88
"null"
99
]
1010
},
1111
"kind": {
12-
"description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
12+
"description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
1313
"type": [
1414
"string",
1515
"null"
1616
]
1717
},
1818
"name": {
19-
"description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
19+
"description": "name is the name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
2020
"type": [
2121
"string",
2222
"null"

master-local/daemonsetspec-apps-v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"template": {
2525
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodTemplateSpec",
26-
"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"
26+
"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"
2727
},
2828
"updateStrategy": {
2929
"$ref": "_definitions.json#/definitions/io.k8s.api.apps.v1.DaemonSetUpdateStrategy",

master-local/daemonsetspec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"template": {
2525
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodTemplateSpec",
26-
"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"
26+
"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"
2727
},
2828
"updateStrategy": {
2929
"$ref": "_definitions.json#/definitions/io.k8s.api.apps.v1.DaemonSetUpdateStrategy",

master-local/deploymentspec-apps-v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
},
5252
"template": {
5353
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodTemplateSpec",
54-
"description": "Template describes the pods that will be created."
54+
"description": "Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is \"Always\"."
5555
}
5656
},
5757
"required": [

master-local/deploymentspec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
},
5252
"template": {
5353
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodTemplateSpec",
54-
"description": "Template describes the pods that will be created."
54+
"description": "Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is \"Always\"."
5555
}
5656
},
5757
"required": [

master-local/ephemeralcontainer-v1.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,17 @@
9999
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.Probe",
100100
"description": "Probes are not allowed for ephemeral containers."
101101
},
102+
"resizePolicy": {
103+
"description": "Resources resize policy for the container.",
104+
"items": {
105+
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ContainerResizePolicy"
106+
},
107+
"type": [
108+
"array",
109+
"null"
110+
],
111+
"x-kubernetes-list-type": "atomic"
112+
},
102113
"resources": {
103114
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements",
104115
"description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod."

master-local/ephemeralcontainer.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,17 @@
9999
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.Probe",
100100
"description": "Probes are not allowed for ephemeral containers."
101101
},
102+
"resizePolicy": {
103+
"description": "Resources resize policy for the container.",
104+
"items": {
105+
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ContainerResizePolicy"
106+
},
107+
"type": [
108+
"array",
109+
"null"
110+
],
111+
"x-kubernetes-list-type": "atomic"
112+
},
102113
"resources": {
103114
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements",
104115
"description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod."

master-local/horizontalpodautoscaler-autoscaling-v1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
},
2828
"spec": {
2929
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec",
30-
"description": "behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status."
30+
"description": "spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status."
3131
},
3232
"status": {
3333
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerStatus",
34-
"description": "current information about the autoscaler."
34+
"description": "status is the current information about the autoscaler."
3535
}
3636
},
3737
"type": "object",

master-local/horizontalpodautoscalerlist-autoscaling-v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
]
1313
},
1414
"items": {
15-
"description": "list of horizontal pod autoscaler objects.",
15+
"description": "items is the list of horizontal pod autoscaler objects.",
1616
"items": {
1717
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler"
1818
},

master-local/horizontalpodautoscalerspec-autoscaling-v1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"description": "specification of a horizontal pod autoscaler.",
33
"properties": {
44
"maxReplicas": {
5-
"description": "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.",
5+
"description": "maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.",
66
"format": "int32",
77
"type": [
88
"integer",
@@ -22,7 +22,7 @@
2222
"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."
2323
},
2424
"targetCPUUtilizationPercentage": {
25-
"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.",
25+
"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.",
2626
"format": "int32",
2727
"type": [
2828
"integer",

0 commit comments

Comments
 (0)