Skip to content

Commit e2e5627

Browse files
author
Yann Hamon
committed
Adding new schemas
1 parent 25114fc commit e2e5627

File tree

320 files changed

+28447
-77
lines changed

Some content is hidden

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

320 files changed

+28447
-77
lines changed

master-local/_definitions.json

+750-18
Large diffs are not rendered by default.

master-local/all.json

+84
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,12 @@
507507
{
508508
"$ref": "_definitions.json#/definitions/io.k8s.api.batch.v1.PodFailurePolicyRule"
509509
},
510+
{
511+
"$ref": "_definitions.json#/definitions/io.k8s.api.batch.v1.SuccessPolicy"
512+
},
513+
{
514+
"$ref": "_definitions.json#/definitions/io.k8s.api.batch.v1.SuccessPolicyRule"
515+
},
510516
{
511517
"$ref": "_definitions.json#/definitions/io.k8s.api.batch.v1.UncountedTerminatedPods"
512518
},
@@ -1488,6 +1494,36 @@
14881494
{
14891495
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.AllocationResult"
14901496
},
1497+
{
1498+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.DriverAllocationResult"
1499+
},
1500+
{
1501+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.DriverRequests"
1502+
},
1503+
{
1504+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.NamedResourcesAllocationResult"
1505+
},
1506+
{
1507+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.NamedResourcesAttribute"
1508+
},
1509+
{
1510+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.NamedResourcesFilter"
1511+
},
1512+
{
1513+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.NamedResourcesInstance"
1514+
},
1515+
{
1516+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.NamedResourcesIntSlice"
1517+
},
1518+
{
1519+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.NamedResourcesRequest"
1520+
},
1521+
{
1522+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.NamedResourcesResources"
1523+
},
1524+
{
1525+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.NamedResourcesStringSlice"
1526+
},
14911527
{
14921528
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.PodSchedulingContext"
14931529
},
@@ -1509,6 +1545,12 @@
15091545
{
15101546
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimList"
15111547
},
1548+
{
1549+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimParameters"
1550+
},
1551+
{
1552+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimParametersList"
1553+
},
15121554
{
15131555
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.ResourceClaimParametersReference"
15141556
},
@@ -1536,12 +1578,36 @@
15361578
{
15371579
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.ResourceClassList"
15381580
},
1581+
{
1582+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.ResourceClassParameters"
1583+
},
1584+
{
1585+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.ResourceClassParametersList"
1586+
},
15391587
{
15401588
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.ResourceClassParametersReference"
15411589
},
1590+
{
1591+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.ResourceFilter"
1592+
},
15421593
{
15431594
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.ResourceHandle"
15441595
},
1596+
{
1597+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.ResourceRequest"
1598+
},
1599+
{
1600+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.ResourceSlice"
1601+
},
1602+
{
1603+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.ResourceSliceList"
1604+
},
1605+
{
1606+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.StructuredResourceHandle"
1607+
},
1608+
{
1609+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.VendorParameters"
1610+
},
15451611
{
15461612
"$ref": "_definitions.json#/definitions/io.k8s.api.scheduling.v1.PriorityClass"
15471613
},
@@ -1611,6 +1677,24 @@
16111677
{
16121678
"$ref": "_definitions.json#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttributesClassList"
16131679
},
1680+
{
1681+
"$ref": "_definitions.json#/definitions/io.k8s.api.storagemigration.v1alpha1.GroupVersionResource"
1682+
},
1683+
{
1684+
"$ref": "_definitions.json#/definitions/io.k8s.api.storagemigration.v1alpha1.MigrationCondition"
1685+
},
1686+
{
1687+
"$ref": "_definitions.json#/definitions/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigration"
1688+
},
1689+
{
1690+
"$ref": "_definitions.json#/definitions/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationList"
1691+
},
1692+
{
1693+
"$ref": "_definitions.json#/definitions/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationSpec"
1694+
},
1695+
{
1696+
"$ref": "_definitions.json#/definitions/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationStatus"
1697+
},
16141698
{
16151699
"$ref": "_definitions.json#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition"
16161700
},

master-local/deleteoptions-meta-v1.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
"scheduling.k8s.io/v1beta1",
6666
"storage.k8s.io/v1",
6767
"storage.k8s.io/v1alpha1",
68-
"storage.k8s.io/v1beta1"
68+
"storage.k8s.io/v1beta1",
69+
"storagemigration.k8s.io/v1alpha1"
6970
]
7071
},
7172
"dryRun": {
@@ -410,6 +411,11 @@
410411
"group": "storage.k8s.io",
411412
"kind": "DeleteOptions",
412413
"version": "v1beta1"
414+
},
415+
{
416+
"group": "storagemigration.k8s.io",
417+
"kind": "DeleteOptions",
418+
"version": "v1alpha1"
413419
}
414420
],
415421
"$schema": "http://json-schema.org/schema#"

master-local/deleteoptions.json

+5
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,11 @@
350350
"group": "storage.k8s.io",
351351
"kind": "DeleteOptions",
352352
"version": "v1beta1"
353+
},
354+
{
355+
"group": "storagemigration.k8s.io",
356+
"kind": "DeleteOptions",
357+
"version": "v1alpha1"
353358
}
354359
],
355360
"$schema": "http://json-schema.org/schema#"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"description": "DriverAllocationResult contains vendor parameters and the allocation result for one request.",
3+
"properties": {
4+
"namedResources": {
5+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.NamedResourcesAllocationResult",
6+
"description": "NamedResources describes the allocation result when using the named resources model."
7+
},
8+
"vendorRequestParameters": {
9+
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension",
10+
"description": "VendorRequestParameters are the per-request configuration parameters from the time that the claim was allocated."
11+
}
12+
},
13+
"type": "object",
14+
"$schema": "http://json-schema.org/schema#"
15+
}
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"description": "DriverAllocationResult contains vendor parameters and the allocation result for one request.",
3+
"properties": {
4+
"namedResources": {
5+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.NamedResourcesAllocationResult",
6+
"description": "NamedResources describes the allocation result when using the named resources model."
7+
},
8+
"vendorRequestParameters": {
9+
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension",
10+
"description": "VendorRequestParameters are the per-request configuration parameters from the time that the claim was allocated."
11+
}
12+
},
13+
"type": "object",
14+
"$schema": "http://json-schema.org/schema#"
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"description": "DriverRequests describes all resources that are needed from one particular driver.",
3+
"properties": {
4+
"driverName": {
5+
"description": "DriverName is the name used by the DRA driver kubelet plugin.",
6+
"type": [
7+
"string",
8+
"null"
9+
]
10+
},
11+
"requests": {
12+
"description": "Requests describes all resources that are needed from the driver.",
13+
"items": {
14+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.ResourceRequest"
15+
},
16+
"type": [
17+
"array",
18+
"null"
19+
],
20+
"x-kubernetes-list-type": "atomic"
21+
},
22+
"vendorParameters": {
23+
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension",
24+
"description": "VendorParameters are arbitrary setup parameters for all requests of the claim. They are ignored while allocating the claim."
25+
}
26+
},
27+
"type": "object",
28+
"$schema": "http://json-schema.org/schema#"
29+
}

master-local/driverrequests.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"description": "DriverRequests describes all resources that are needed from one particular driver.",
3+
"properties": {
4+
"driverName": {
5+
"description": "DriverName is the name used by the DRA driver kubelet plugin.",
6+
"type": [
7+
"string",
8+
"null"
9+
]
10+
},
11+
"requests": {
12+
"description": "Requests describes all resources that are needed from the driver.",
13+
"items": {
14+
"$ref": "_definitions.json#/definitions/io.k8s.api.resource.v1alpha2.ResourceRequest"
15+
},
16+
"type": [
17+
"array",
18+
"null"
19+
],
20+
"x-kubernetes-list-type": "atomic"
21+
},
22+
"vendorParameters": {
23+
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension",
24+
"description": "VendorParameters are arbitrary setup parameters for all requests of the claim. They are ignored while allocating the claim."
25+
}
26+
},
27+
"type": "object",
28+
"$schema": "http://json-schema.org/schema#"
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"description": "The names of the group, the version, and the resource.",
3+
"properties": {
4+
"group": {
5+
"description": "The name of the group.",
6+
"type": [
7+
"string",
8+
"null"
9+
]
10+
},
11+
"resource": {
12+
"description": "The name of the resource.",
13+
"type": [
14+
"string",
15+
"null"
16+
]
17+
},
18+
"version": {
19+
"description": "The name of the version.",
20+
"type": [
21+
"string",
22+
"null"
23+
]
24+
}
25+
},
26+
"type": "object",
27+
"$schema": "http://json-schema.org/schema#"
28+
}
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"description": "The names of the group, the version, and the resource.",
3+
"properties": {
4+
"group": {
5+
"description": "The name of the group.",
6+
"type": [
7+
"string",
8+
"null"
9+
]
10+
},
11+
"resource": {
12+
"description": "The name of the resource.",
13+
"type": [
14+
"string",
15+
"null"
16+
]
17+
},
18+
"version": {
19+
"description": "The name of the version.",
20+
"type": [
21+
"string",
22+
"null"
23+
]
24+
}
25+
},
26+
"type": "object",
27+
"$schema": "http://json-schema.org/schema#"
28+
}

master-local/jobspec-batch-v1.json

+4
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@
8585
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector",
8686
"description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors"
8787
},
88+
"successPolicy": {
89+
"$ref": "_definitions.json#/definitions/io.k8s.api.batch.v1.SuccessPolicy",
90+
"description": "successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.\n\nThis field is alpha-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (disabled by default)."
91+
},
8892
"suspend": {
8993
"description": "suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.",
9094
"type": [

master-local/jobspec.json

+4
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@
8585
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector",
8686
"description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors"
8787
},
88+
"successPolicy": {
89+
"$ref": "_definitions.json#/definitions/io.k8s.api.batch.v1.SuccessPolicy",
90+
"description": "successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.\n\nThis field is alpha-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (disabled by default)."
91+
},
8892
"suspend": {
8993
"description": "suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.",
9094
"type": [
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"description": "Describes the state of a migration at a certain point.",
3+
"properties": {
4+
"lastUpdateTime": {
5+
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
6+
"description": "The last time this condition was updated."
7+
},
8+
"message": {
9+
"description": "A human readable message indicating details about the transition.",
10+
"type": [
11+
"string",
12+
"null"
13+
]
14+
},
15+
"reason": {
16+
"description": "The reason for the condition's last transition.",
17+
"type": [
18+
"string",
19+
"null"
20+
]
21+
},
22+
"status": {
23+
"description": "Status of the condition, one of True, False, Unknown.",
24+
"type": [
25+
"string",
26+
"null"
27+
]
28+
},
29+
"type": {
30+
"description": "Type of the condition.",
31+
"type": [
32+
"string",
33+
"null"
34+
]
35+
}
36+
},
37+
"required": [
38+
"type",
39+
"status"
40+
],
41+
"type": "object",
42+
"$schema": "http://json-schema.org/schema#"
43+
}

0 commit comments

Comments
 (0)