Skip to content

Commit ba5ba7b

Browse files
author
Yann Hamon
committed
Adding new schemas
1 parent 7668707 commit ba5ba7b

File tree

60 files changed

+2760
-78
lines changed

Some content is hidden

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

60 files changed

+2760
-78
lines changed

master-local/_definitions.json

+125-3
Original file line numberDiff line numberDiff line change
@@ -2910,8 +2910,7 @@
29102910
},
29112911
"required": [
29122912
"selector",
2913-
"template",
2914-
"serviceName"
2913+
"template"
29152914
],
29162915
"type": "object"
29172916
},
@@ -4828,7 +4827,7 @@
48284827
},
48294828
"successPolicy": {
48304829
"$ref": "#/definitions/io.k8s.api.batch.v1.SuccessPolicy",
4831-
"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 beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default)."
4830+
"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."
48324831
},
48334832
"suspend": {
48344833
"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.",
@@ -5647,6 +5646,111 @@
56475646
],
56485647
"type": "object"
56495648
},
5649+
"io.k8s.api.coordination.v1beta1.LeaseCandidate": {
5650+
"description": "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.",
5651+
"properties": {
5652+
"apiVersion": {
5653+
"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",
5654+
"type": "string"
5655+
},
5656+
"kind": {
5657+
"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",
5658+
"type": "string",
5659+
"enum": [
5660+
"LeaseCandidate"
5661+
]
5662+
},
5663+
"metadata": {
5664+
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta",
5665+
"description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
5666+
},
5667+
"spec": {
5668+
"$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidateSpec",
5669+
"description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status"
5670+
}
5671+
},
5672+
"type": "object",
5673+
"x-kubernetes-group-version-kind": [
5674+
{
5675+
"group": "coordination.k8s.io",
5676+
"kind": "LeaseCandidate",
5677+
"version": "v1beta1"
5678+
}
5679+
]
5680+
},
5681+
"io.k8s.api.coordination.v1beta1.LeaseCandidateList": {
5682+
"description": "LeaseCandidateList is a list of Lease objects.",
5683+
"properties": {
5684+
"apiVersion": {
5685+
"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",
5686+
"type": "string"
5687+
},
5688+
"items": {
5689+
"description": "items is a list of schema objects.",
5690+
"items": {
5691+
"$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate"
5692+
},
5693+
"type": "array"
5694+
},
5695+
"kind": {
5696+
"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",
5697+
"type": "string",
5698+
"enum": [
5699+
"LeaseCandidateList"
5700+
]
5701+
},
5702+
"metadata": {
5703+
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta",
5704+
"description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
5705+
}
5706+
},
5707+
"required": [
5708+
"items"
5709+
],
5710+
"type": "object",
5711+
"x-kubernetes-group-version-kind": [
5712+
{
5713+
"group": "coordination.k8s.io",
5714+
"kind": "LeaseCandidateList",
5715+
"version": "v1beta1"
5716+
}
5717+
]
5718+
},
5719+
"io.k8s.api.coordination.v1beta1.LeaseCandidateSpec": {
5720+
"description": "LeaseCandidateSpec is a specification of a Lease.",
5721+
"properties": {
5722+
"binaryVersion": {
5723+
"description": "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.",
5724+
"type": "string"
5725+
},
5726+
"emulationVersion": {
5727+
"description": "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"",
5728+
"type": "string"
5729+
},
5730+
"leaseName": {
5731+
"description": "LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.",
5732+
"type": "string"
5733+
},
5734+
"pingTime": {
5735+
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime",
5736+
"description": "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime."
5737+
},
5738+
"renewTime": {
5739+
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime",
5740+
"description": "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates."
5741+
},
5742+
"strategy": {
5743+
"description": "Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.",
5744+
"type": "string"
5745+
}
5746+
},
5747+
"required": [
5748+
"leaseName",
5749+
"binaryVersion",
5750+
"strategy"
5751+
],
5752+
"type": "object"
5753+
},
56505754
"io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource": {
56515755
"description": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.",
56525756
"properties": {
@@ -20116,6 +20220,14 @@
2011620220
"compiler": {
2011720221
"type": "string"
2011820222
},
20223+
"emulationMajor": {
20224+
"description": "EmulationMajor is the major version of the emulation version",
20225+
"type": "string"
20226+
},
20227+
"emulationMinor": {
20228+
"description": "EmulationMinor is the minor version of the emulation version",
20229+
"type": "string"
20230+
},
2011920231
"gitCommit": {
2012020232
"type": "string"
2012120233
},
@@ -20129,9 +20241,19 @@
2012920241
"type": "string"
2013020242
},
2013120243
"major": {
20244+
"description": "Major is the major version of the binary version",
20245+
"type": "string"
20246+
},
20247+
"minCompatibilityMajor": {
20248+
"description": "MinCompatibilityMajor is the major version of the minimum compatibility version",
20249+
"type": "string"
20250+
},
20251+
"minCompatibilityMinor": {
20252+
"description": "MinCompatibilityMinor is the minor version of the minimum compatibility version",
2013220253
"type": "string"
2013320254
},
2013420255
"minor": {
20256+
"description": "Minor is the minor version of the binary version",
2013520257
"type": "string"
2013620258
},
2013720259
"platform": {

master-local/all.json

+9
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,15 @@
555555
{
556556
"$ref": "_definitions.json#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidateSpec"
557557
},
558+
{
559+
"$ref": "_definitions.json#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate"
560+
},
561+
{
562+
"$ref": "_definitions.json#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidateList"
563+
},
564+
{
565+
"$ref": "_definitions.json#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidateSpec"
566+
},
558567
{
559568
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource"
560569
},

master-local/info-pkg-version.json

+30
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@
1313
"null"
1414
]
1515
},
16+
"emulationMajor": {
17+
"description": "EmulationMajor is the major version of the emulation version",
18+
"type": [
19+
"string",
20+
"null"
21+
]
22+
},
23+
"emulationMinor": {
24+
"description": "EmulationMinor is the minor version of the emulation version",
25+
"type": [
26+
"string",
27+
"null"
28+
]
29+
},
1630
"gitCommit": {
1731
"type": [
1832
"string",
@@ -38,12 +52,28 @@
3852
]
3953
},
4054
"major": {
55+
"description": "Major is the major version of the binary version",
56+
"type": [
57+
"string",
58+
"null"
59+
]
60+
},
61+
"minCompatibilityMajor": {
62+
"description": "MinCompatibilityMajor is the major version of the minimum compatibility version",
63+
"type": [
64+
"string",
65+
"null"
66+
]
67+
},
68+
"minCompatibilityMinor": {
69+
"description": "MinCompatibilityMinor is the minor version of the minimum compatibility version",
4170
"type": [
4271
"string",
4372
"null"
4473
]
4574
},
4675
"minor": {
76+
"description": "Minor is the minor version of the binary version",
4777
"type": [
4878
"string",
4979
"null"

master-local/info.json

+30
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@
1313
"null"
1414
]
1515
},
16+
"emulationMajor": {
17+
"description": "EmulationMajor is the major version of the emulation version",
18+
"type": [
19+
"string",
20+
"null"
21+
]
22+
},
23+
"emulationMinor": {
24+
"description": "EmulationMinor is the minor version of the emulation version",
25+
"type": [
26+
"string",
27+
"null"
28+
]
29+
},
1630
"gitCommit": {
1731
"type": [
1832
"string",
@@ -38,12 +52,28 @@
3852
]
3953
},
4054
"major": {
55+
"description": "Major is the major version of the binary version",
56+
"type": [
57+
"string",
58+
"null"
59+
]
60+
},
61+
"minCompatibilityMajor": {
62+
"description": "MinCompatibilityMajor is the major version of the minimum compatibility version",
63+
"type": [
64+
"string",
65+
"null"
66+
]
67+
},
68+
"minCompatibilityMinor": {
69+
"description": "MinCompatibilityMinor is the minor version of the minimum compatibility version",
4170
"type": [
4271
"string",
4372
"null"
4473
]
4574
},
4675
"minor": {
76+
"description": "Minor is the minor version of the binary version",
4777
"type": [
4878
"string",
4979
"null"

master-local/jobspec-batch-v1.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
},
8888
"successPolicy": {
8989
"$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 beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default)."
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."
9191
},
9292
"suspend": {
9393
"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.",

master-local/jobspec.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
},
8888
"successPolicy": {
8989
"$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 beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default)."
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."
9191
},
9292
"suspend": {
9393
"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.",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"description": "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.",
3+
"properties": {
4+
"apiVersion": {
5+
"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",
6+
"type": [
7+
"string",
8+
"null"
9+
],
10+
"enum": [
11+
"coordination.k8s.io/v1beta1"
12+
]
13+
},
14+
"kind": {
15+
"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",
16+
"type": [
17+
"string",
18+
"null"
19+
],
20+
"enum": [
21+
"LeaseCandidate"
22+
]
23+
},
24+
"metadata": {
25+
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta",
26+
"description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
27+
},
28+
"spec": {
29+
"$ref": "_definitions.json#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidateSpec",
30+
"description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status"
31+
}
32+
},
33+
"type": "object",
34+
"x-kubernetes-group-version-kind": [
35+
{
36+
"group": "coordination.k8s.io",
37+
"kind": "LeaseCandidate",
38+
"version": "v1beta1"
39+
}
40+
],
41+
"$schema": "http://json-schema.org/schema#"
42+
}

master-local/leasecandidate.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
2424
},
2525
"spec": {
26-
"$ref": "_definitions.json#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidateSpec",
26+
"$ref": "_definitions.json#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidateSpec",
2727
"description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status"
2828
}
2929
},
@@ -32,7 +32,7 @@
3232
{
3333
"group": "coordination.k8s.io",
3434
"kind": "LeaseCandidate",
35-
"version": "v1alpha2"
35+
"version": "v1beta1"
3636
}
3737
],
3838
"$schema": "http://json-schema.org/schema#"

0 commit comments

Comments
 (0)