Skip to content

Commit c2e8da5

Browse files
author
Yann Hamon
committed
Adding new schemas
1 parent fe0a861 commit c2e8da5

File tree

116 files changed

+2510
-136
lines changed

Some content is hidden

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

116 files changed

+2510
-136
lines changed

master-local/_definitions.json

Lines changed: 99 additions & 6 deletions
Large diffs are not rendered by default.

master-local/all.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@
7878
{
7979
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1alpha1.Validation"
8080
},
81+
{
82+
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1alpha1.Variable"
83+
},
8184
{
8285
"$ref": "_definitions.json#/definitions/io.k8s.api.apiserverinternal.v1alpha1.ServerStorageVersion"
8386
},
@@ -642,6 +645,9 @@
642645
{
643646
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.HostAlias"
644647
},
648+
{
649+
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.HostIP"
650+
},
645651
{
646652
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.HostPathVolumeSource"
647653
},
@@ -1062,6 +1068,9 @@
10621068
{
10631069
"$ref": "_definitions.json#/definitions/io.k8s.api.events.v1.EventSeries"
10641070
},
1071+
{
1072+
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1beta2.ExemptPriorityLevelConfiguration"
1073+
},
10651074
{
10661075
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1beta2.FlowDistinguisherMethod"
10671076
},
@@ -1128,6 +1137,9 @@
11281137
{
11291138
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1beta2.UserSubject"
11301139
},
1140+
{
1141+
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration"
1142+
},
11311143
{
11321144
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowDistinguisherMethod"
11331145
},
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"description": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.",
3+
"properties": {
4+
"lendablePercent": {
5+
"description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )",
6+
"format": "int32",
7+
"type": [
8+
"integer",
9+
"null"
10+
]
11+
},
12+
"nominalConcurrencyShares": {
13+
"description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.",
14+
"format": "int32",
15+
"type": [
16+
"integer",
17+
"null"
18+
]
19+
}
20+
},
21+
"type": "object",
22+
"$schema": "http://json-schema.org/schema#"
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"description": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.",
3+
"properties": {
4+
"lendablePercent": {
5+
"description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )",
6+
"format": "int32",
7+
"type": [
8+
"integer",
9+
"null"
10+
]
11+
},
12+
"nominalConcurrencyShares": {
13+
"description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.",
14+
"format": "int32",
15+
"type": [
16+
"integer",
17+
"null"
18+
]
19+
}
20+
},
21+
"type": "object",
22+
"$schema": "http://json-schema.org/schema#"
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"description": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.",
3+
"properties": {
4+
"lendablePercent": {
5+
"description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )",
6+
"format": "int32",
7+
"type": [
8+
"integer",
9+
"null"
10+
]
11+
},
12+
"nominalConcurrencyShares": {
13+
"description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.",
14+
"format": "int32",
15+
"type": [
16+
"integer",
17+
"null"
18+
]
19+
}
20+
},
21+
"type": "object",
22+
"$schema": "http://json-schema.org/schema#"
23+
}

master-local/hostip-v1.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"description": "HostIP represents a single IP address allocated to the host.",
3+
"properties": {
4+
"ip": {
5+
"description": "IP is the IP address assigned to the host",
6+
"type": [
7+
"string",
8+
"null"
9+
]
10+
}
11+
},
12+
"type": "object",
13+
"$schema": "http://json-schema.org/schema#"
14+
}

master-local/hostip.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"description": "HostIP represents a single IP address allocated to the host.",
3+
"properties": {
4+
"ip": {
5+
"description": "IP is the IP address assigned to the host",
6+
"type": [
7+
"string",
8+
"null"
9+
]
10+
}
11+
},
12+
"type": "object",
13+
"$schema": "http://json-schema.org/schema#"
14+
}

master-local/limitedprioritylevelconfiguration-flowcontrol-v1beta3.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"description": "`limitResponse` indicates what to do with requests that can not be executed right now"
2323
},
2424
"nominalConcurrencyShares": {
25-
"description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[limited priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other Limited priority level. This field has a default value of 30.",
25+
"description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of 30.",
2626
"format": "int32",
2727
"type": [
2828
"integer",

master-local/limitedprioritylevelconfiguration.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"description": "`limitResponse` indicates what to do with requests that can not be executed right now"
2323
},
2424
"nominalConcurrencyShares": {
25-
"description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[limited priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other Limited priority level. This field has a default value of 30.",
25+
"description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of 30.",
2626
"format": "int32",
2727
"type": [
2828
"integer",

master-local/podip-v1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"description": "IP address information for entries in the (plural) PodIPs field. Each entry includes:\n\n\tIP: An IP address allocated to the pod. Routable at least within the cluster.",
2+
"description": "PodIP represents a single IP address allocated to the pod.",
33
"properties": {
44
"ip": {
5-
"description": "ip is an IP address (IPv4 or IPv6) assigned to the pod",
5+
"description": "IP is the IP address assigned to the pod",
66
"type": [
77
"string",
88
"null"

master-local/podip.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"description": "IP address information for entries in the (plural) PodIPs field. Each entry includes:\n\n\tIP: An IP address allocated to the pod. Routable at least within the cluster.",
2+
"description": "PodIP represents a single IP address allocated to the pod.",
33
"properties": {
44
"ip": {
5-
"description": "ip is an IP address (IPv4 or IPv6) assigned to the pod",
5+
"description": "IP is the IP address assigned to the pod",
66
"type": [
77
"string",
88
"null"

master-local/podstatus-v1.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,25 @@
3434
]
3535
},
3636
"hostIP": {
37-
"description": "IP address of the host to which the pod is assigned. Empty if not yet scheduled.",
37+
"description": "hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod",
3838
"type": [
3939
"string",
4040
"null"
4141
]
4242
},
43+
"hostIPs": {
44+
"description": "hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod.",
45+
"items": {
46+
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.HostIP"
47+
},
48+
"type": [
49+
"array",
50+
"null"
51+
],
52+
"x-kubernetes-list-type": "atomic",
53+
"x-kubernetes-patch-merge-key": "ip",
54+
"x-kubernetes-patch-strategy": "merge"
55+
},
4356
"initContainerStatuses": {
4457
"description": "The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status",
4558
"items": {
@@ -72,7 +85,7 @@
7285
]
7386
},
7487
"podIP": {
75-
"description": "IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.",
88+
"description": "podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.",
7689
"type": [
7790
"string",
7891
"null"

master-local/podstatus.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,25 @@
3434
]
3535
},
3636
"hostIP": {
37-
"description": "IP address of the host to which the pod is assigned. Empty if not yet scheduled.",
37+
"description": "hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod",
3838
"type": [
3939
"string",
4040
"null"
4141
]
4242
},
43+
"hostIPs": {
44+
"description": "hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod.",
45+
"items": {
46+
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.HostIP"
47+
},
48+
"type": [
49+
"array",
50+
"null"
51+
],
52+
"x-kubernetes-list-type": "atomic",
53+
"x-kubernetes-patch-merge-key": "ip",
54+
"x-kubernetes-patch-strategy": "merge"
55+
},
4356
"initContainerStatuses": {
4457
"description": "The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status",
4558
"items": {
@@ -72,7 +85,7 @@
7285
]
7386
},
7487
"podIP": {
75-
"description": "IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.",
88+
"description": "podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.",
7689
"type": [
7790
"string",
7891
"null"

master-local/prioritylevelconfigurationspec-flowcontrol-v1beta2.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.",
33
"properties": {
4+
"exempt": {
5+
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1beta2.ExemptPriorityLevelConfiguration",
6+
"description": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply."
7+
},
48
"limited": {
59
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1beta2.LimitedPriorityLevelConfiguration",
610
"description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`."
@@ -21,6 +25,7 @@
2125
{
2226
"discriminator": "type",
2327
"fields-to-discriminateBy": {
28+
"exempt": "Exempt",
2429
"limited": "Limited"
2530
}
2631
}

master-local/prioritylevelconfigurationspec-flowcontrol-v1beta3.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.",
33
"properties": {
4+
"exempt": {
5+
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration",
6+
"description": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply."
7+
},
48
"limited": {
59
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration",
610
"description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`."
@@ -21,6 +25,7 @@
2125
{
2226
"discriminator": "type",
2327
"fields-to-discriminateBy": {
28+
"exempt": "Exempt",
2429
"limited": "Limited"
2530
}
2631
}

master-local/prioritylevelconfigurationspec.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.",
33
"properties": {
4+
"exempt": {
5+
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration",
6+
"description": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply."
7+
},
48
"limited": {
59
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration",
610
"description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`."
@@ -21,6 +25,7 @@
2125
{
2226
"discriminator": "type",
2327
"fields-to-discriminateBy": {
28+
"exempt": "Exempt",
2429
"limited": "Limited"
2530
}
2631
}

master-local/validatingadmissionpolicyspec-admissionregistration-v1alpha1.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@
5353
"null"
5454
],
5555
"x-kubernetes-list-type": "atomic"
56+
},
57+
"variables": {
58+
"description": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.",
59+
"items": {
60+
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1alpha1.Variable"
61+
},
62+
"type": [
63+
"array",
64+
"null"
65+
],
66+
"x-kubernetes-list-map-keys": [
67+
"name"
68+
],
69+
"x-kubernetes-list-type": "map",
70+
"x-kubernetes-patch-merge-key": "name",
71+
"x-kubernetes-patch-strategy": "merge"
5672
}
5773
},
5874
"type": "object",

0 commit comments

Comments
 (0)