Skip to content

Commit 25114fc

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

File tree

232 files changed

+29513
-172
lines changed

Some content is hidden

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

232 files changed

+29513
-172
lines changed

master-local/_definitions.json

+516-11
Large diffs are not rendered by default.

master-local/all.json

+51
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
{
22
"oneOf": [
3+
{
4+
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.AuditAnnotation"
5+
},
6+
{
7+
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.ExpressionWarning"
8+
},
39
{
410
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.MatchCondition"
511
},
12+
{
13+
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.MatchResources"
14+
},
615
{
716
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhook"
817
},
@@ -12,12 +21,45 @@
1221
{
1322
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList"
1423
},
24+
{
25+
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.NamedRuleWithOperations"
26+
},
27+
{
28+
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.ParamKind"
29+
},
30+
{
31+
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.ParamRef"
32+
},
1533
{
1634
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.RuleWithOperations"
1735
},
1836
{
1937
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.ServiceReference"
2038
},
39+
{
40+
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.TypeChecking"
41+
},
42+
{
43+
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicy"
44+
},
45+
{
46+
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBinding"
47+
},
48+
{
49+
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingList"
50+
},
51+
{
52+
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec"
53+
},
54+
{
55+
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyList"
56+
},
57+
{
58+
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicySpec"
59+
},
60+
{
61+
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyStatus"
62+
},
2163
{
2264
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhook"
2365
},
@@ -27,6 +69,12 @@
2769
{
2870
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList"
2971
},
72+
{
73+
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.Validation"
74+
},
75+
{
76+
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.Variable"
77+
},
3078
{
3179
"$ref": "_definitions.json#/definitions/io.k8s.api.admissionregistration.v1.WebhookClientConfig"
3280
},
@@ -501,6 +549,9 @@
501549
{
502550
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.Affinity"
503551
},
552+
{
553+
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.AppArmorProfile"
554+
},
504555
{
505556
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.AttachedVolume"
506557
},

master-local/apparmorprofile-v1.json

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"description": "AppArmorProfile defines a pod or container's AppArmor settings.",
3+
"properties": {
4+
"localhostProfile": {
5+
"description": "localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \"Localhost\".",
6+
"type": [
7+
"string",
8+
"null"
9+
]
10+
},
11+
"type": {
12+
"description": "type indicates which kind of AppArmor profile will be applied. Valid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.",
13+
"type": [
14+
"string",
15+
"null"
16+
]
17+
}
18+
},
19+
"required": [
20+
"type"
21+
],
22+
"type": "object",
23+
"x-kubernetes-unions": [
24+
{
25+
"discriminator": "type",
26+
"fields-to-discriminateBy": {
27+
"localhostProfile": "LocalhostProfile"
28+
}
29+
}
30+
],
31+
"$schema": "http://json-schema.org/schema#"
32+
}

master-local/apparmorprofile.json

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"description": "AppArmorProfile defines a pod or container's AppArmor settings.",
3+
"properties": {
4+
"localhostProfile": {
5+
"description": "localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \"Localhost\".",
6+
"type": [
7+
"string",
8+
"null"
9+
]
10+
},
11+
"type": {
12+
"description": "type indicates which kind of AppArmor profile will be applied. Valid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.",
13+
"type": [
14+
"string",
15+
"null"
16+
]
17+
}
18+
},
19+
"required": [
20+
"type"
21+
],
22+
"type": "object",
23+
"x-kubernetes-unions": [
24+
{
25+
"discriminator": "type",
26+
"fields-to-discriminateBy": {
27+
"localhostProfile": "LocalhostProfile"
28+
}
29+
}
30+
],
31+
"$schema": "http://json-schema.org/schema#"
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"description": "AuditAnnotation describes how to produce an audit annotation for an API request.",
3+
"properties": {
4+
"key": {
5+
"description": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.",
6+
"type": [
7+
"string",
8+
"null"
9+
]
10+
},
11+
"valueExpression": {
12+
"description": "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.",
13+
"type": [
14+
"string",
15+
"null"
16+
]
17+
}
18+
},
19+
"required": [
20+
"key",
21+
"valueExpression"
22+
],
23+
"type": "object",
24+
"$schema": "http://json-schema.org/schema#"
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"description": "ExpressionWarning is a warning information that targets a specific expression.",
3+
"properties": {
4+
"fieldRef": {
5+
"description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"",
6+
"type": [
7+
"string",
8+
"null"
9+
]
10+
},
11+
"warning": {
12+
"description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.",
13+
"type": [
14+
"string",
15+
"null"
16+
]
17+
}
18+
},
19+
"required": [
20+
"fieldRef",
21+
"warning"
22+
],
23+
"type": "object",
24+
"$schema": "http://json-schema.org/schema#"
25+
}

master-local/jobspec-batch-v1.json

+7
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
"null"
4141
]
4242
},
43+
"managedBy": {
44+
"description": "ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \"/\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \"/\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 64 characters.\n\nThis field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).",
45+
"type": [
46+
"string",
47+
"null"
48+
]
49+
},
4350
"manualSelector": {
4451
"description": "manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector",
4552
"type": [

master-local/jobspec.json

+7
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
"null"
4141
]
4242
},
43+
"managedBy": {
44+
"description": "ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \"/\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \"/\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 64 characters.\n\nThis field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).",
45+
"type": [
46+
"string",
47+
"null"
48+
]
49+
},
4350
"manualSelector": {
4451
"description": "manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector",
4552
"type": [

master-local/jobstatus-batch-v1.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"description": "JobStatus represents the current state of a Job.",
33
"properties": {
44
"active": {
5-
"description": "The number of pending and running pods which are not terminating (without a deletionTimestamp).",
5+
"description": "The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.",
66
"format": "int32",
77
"type": [
88
"integer",
@@ -18,10 +18,10 @@
1818
},
1919
"completionTime": {
2020
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
21-
"description": "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is only set when the job finishes successfully."
21+
"description": "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field."
2222
},
2323
"conditions": {
24-
"description": "The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/",
24+
"description": "The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true.\n\nA job is considered finished when it is in a terminal condition, either \"Complete\" or \"Failed\". At that point, all pods of the job are in terminal phase. Job cannot be both in the \"Complete\" and \"Failed\" conditions. Additionally, it cannot be in the \"Complete\" and \"FailureTarget\" conditions. The \"Complete\", \"Failed\" and \"FailureTarget\" conditions cannot be disabled.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/",
2525
"items": {
2626
"$ref": "_definitions.json#/definitions/io.k8s.api.batch.v1.JobCondition"
2727
},
@@ -34,22 +34,22 @@
3434
"x-kubernetes-patch-strategy": "merge"
3535
},
3636
"failed": {
37-
"description": "The number of pods which reached phase Failed.",
37+
"description": "The number of pods which reached phase Failed. The value increases monotonically.",
3838
"format": "int32",
3939
"type": [
4040
"integer",
4141
"null"
4242
]
4343
},
4444
"failedIndexes": {
45-
"description": "FailedIndexes holds the failed indexes when backoffLimitPerIndex=true. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).",
45+
"description": "FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". The set of failed indexes cannot overlap with the set of completed indexes.\n\nThis field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).",
4646
"type": [
4747
"string",
4848
"null"
4949
]
5050
},
5151
"ready": {
52-
"description": "The number of pods which have a Ready condition.",
52+
"description": "The number of pods which have a Ready condition. The value is zero (or null) for finished jobs.",
5353
"format": "int32",
5454
"type": [
5555
"integer",
@@ -58,18 +58,18 @@
5858
},
5959
"startTime": {
6060
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
61-
"description": "Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC."
61+
"description": "Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.\n\nOnce set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished."
6262
},
6363
"succeeded": {
64-
"description": "The number of pods which reached phase Succeeded.",
64+
"description": "The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs.",
6565
"format": "int32",
6666
"type": [
6767
"integer",
6868
"null"
6969
]
7070
},
7171
"terminating": {
72-
"description": "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).\n\nThis field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).",
72+
"description": "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp). The value is zero (or null) for finished jobs.\n\nThis field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).",
7373
"format": "int32",
7474
"type": [
7575
"integer",
@@ -78,7 +78,7 @@
7878
},
7979
"uncountedTerminatedPods": {
8080
"$ref": "_definitions.json#/definitions/io.k8s.api.batch.v1.UncountedTerminatedPods",
81-
"description": "uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status:\n\n1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nOld jobs might not be tracked using this field, in which case the field remains null."
81+
"description": "uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status:\n\n1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nOld jobs might not be tracked using this field, in which case the field remains null. The structure is empty for finished jobs."
8282
}
8383
},
8484
"type": "object",

0 commit comments

Comments
 (0)