Skip to content

Commit c8e5bb8

Browse files
author
Yann Hamon
committed
Adding new schemas
1 parent 5ee4fc1 commit c8e5bb8

File tree

17,114 files changed

+7057417
-3232
lines changed

Some content is hidden

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

17,114 files changed

+7057417
-3232
lines changed

Diff for: master-local/_definitions.json

+45-25
Large diffs are not rendered by default.

Diff for: master-local/all.json

+3
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,9 @@
777777
{
778778
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodList"
779779
},
780+
{
781+
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodOS"
782+
},
780783
{
781784
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodReadinessGate"
782785
},

Diff for: master-local/horizontalpodautoscalerstatus-autoscaling-v2beta1.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@
5252
},
5353
"required": [
5454
"currentReplicas",
55-
"desiredReplicas",
56-
"conditions"
55+
"desiredReplicas"
5756
],
5857
"type": "object",
5958
"$schema": "http://json-schema.org/schema#"

Diff for: master-local/horizontalpodautoscalerstatus-autoscaling-v2beta2.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@
5252
},
5353
"required": [
5454
"currentReplicas",
55-
"desiredReplicas",
56-
"conditions"
55+
"desiredReplicas"
5756
],
5857
"type": "object",
5958
"$schema": "http://json-schema.org/schema#"

Diff for: master-local/horizontalpodautoscalerstatus.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@
5252
},
5353
"required": [
5454
"currentReplicas",
55-
"desiredReplicas",
56-
"conditions"
55+
"desiredReplicas"
5756
],
5857
"type": "object",
5958
"$schema": "http://json-schema.org/schema#"

Diff for: master-local/jobstatus-batch-v1.json

+9-1
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 actively running pods.",
5+
"description": "The number of pending and running pods.",
66
"format": "int32",
77
"type": [
88
"integer",
@@ -41,6 +41,14 @@
4141
"null"
4242
]
4343
},
44+
"ready": {
45+
"description": "The number of pods which have a Ready condition.\n\nThis field is alpha-level. The job controller populates the field when the feature gate JobReadyPods is enabled (disabled by default).",
46+
"format": "int32",
47+
"type": [
48+
"integer",
49+
"null"
50+
]
51+
},
4452
"startTime": {
4553
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
4654
"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."

Diff for: master-local/jobstatus.json

+9-1
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 actively running pods.",
5+
"description": "The number of pending and running pods.",
66
"format": "int32",
77
"type": [
88
"integer",
@@ -41,6 +41,14 @@
4141
"null"
4242
]
4343
},
44+
"ready": {
45+
"description": "The number of pods which have a Ready condition.\n\nThis field is alpha-level. The job controller populates the field when the feature gate JobReadyPods is enabled (disabled by default).",
46+
"format": "int32",
47+
"type": [
48+
"integer",
49+
"null"
50+
]
51+
},
4452
"startTime": {
4553
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
4654
"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."

Diff for: master-local/podos-v1.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"description": "PodOS defines the OS parameters of a pod.",
3+
"properties": {
4+
"name": {
5+
"description": "Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null",
6+
"type": [
7+
"string",
8+
"null"
9+
]
10+
}
11+
},
12+
"required": [
13+
"name"
14+
],
15+
"type": "object",
16+
"$schema": "http://json-schema.org/schema#"
17+
}

Diff for: master-local/podos.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"description": "PodOS defines the OS parameters of a pod.",
3+
"properties": {
4+
"name": {
5+
"description": "Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null",
6+
"type": [
7+
"string",
8+
"null"
9+
]
10+
}
11+
},
12+
"required": [
13+
"name"
14+
],
15+
"type": "object",
16+
"$schema": "http://json-schema.org/schema#"
17+
}

Diff for: master-local/podsecuritycontext-v1.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
"description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.",
33
"properties": {
44
"fsGroup": {
5-
"description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.",
5+
"description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.",
66
"format": "int64",
77
"type": [
88
"integer",
99
"null"
1010
]
1111
},
1212
"fsGroupChangePolicy": {
13-
"description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used.",
13+
"description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows.",
1414
"type": [
1515
"string",
1616
"null"
1717
]
1818
},
1919
"runAsGroup": {
20-
"description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.",
20+
"description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.",
2121
"format": "int64",
2222
"type": [
2323
"integer",
@@ -32,7 +32,7 @@
3232
]
3333
},
3434
"runAsUser": {
35-
"description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.",
35+
"description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.",
3636
"format": "int64",
3737
"type": [
3838
"integer",
@@ -41,14 +41,14 @@
4141
},
4242
"seLinuxOptions": {
4343
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.SELinuxOptions",
44-
"description": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container."
44+
"description": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."
4545
},
4646
"seccompProfile": {
4747
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.SeccompProfile",
48-
"description": "The seccomp options to use by the containers in this pod."
48+
"description": "The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows."
4949
},
5050
"supplementalGroups": {
51-
"description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container.",
51+
"description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. Note that this field cannot be set when spec.os.name is windows.",
5252
"items": {
5353
"format": "int64",
5454
"type": [
@@ -62,7 +62,7 @@
6262
]
6363
},
6464
"sysctls": {
65-
"description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch.",
65+
"description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.",
6666
"items": {
6767
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.Sysctl"
6868
},
@@ -73,7 +73,7 @@
7373
},
7474
"windowsOptions": {
7575
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.WindowsSecurityContextOptions",
76-
"description": "The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."
76+
"description": "The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux."
7777
}
7878
},
7979
"type": "object",

Diff for: master-local/podsecuritycontext.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
"description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.",
33
"properties": {
44
"fsGroup": {
5-
"description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.",
5+
"description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.",
66
"format": "int64",
77
"type": [
88
"integer",
99
"null"
1010
]
1111
},
1212
"fsGroupChangePolicy": {
13-
"description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used.",
13+
"description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows.",
1414
"type": [
1515
"string",
1616
"null"
1717
]
1818
},
1919
"runAsGroup": {
20-
"description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.",
20+
"description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.",
2121
"format": "int64",
2222
"type": [
2323
"integer",
@@ -32,7 +32,7 @@
3232
]
3333
},
3434
"runAsUser": {
35-
"description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.",
35+
"description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.",
3636
"format": "int64",
3737
"type": [
3838
"integer",
@@ -41,14 +41,14 @@
4141
},
4242
"seLinuxOptions": {
4343
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.SELinuxOptions",
44-
"description": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container."
44+
"description": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."
4545
},
4646
"seccompProfile": {
4747
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.SeccompProfile",
48-
"description": "The seccomp options to use by the containers in this pod."
48+
"description": "The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows."
4949
},
5050
"supplementalGroups": {
51-
"description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container.",
51+
"description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. Note that this field cannot be set when spec.os.name is windows.",
5252
"items": {
5353
"format": "int64",
5454
"type": [
@@ -62,7 +62,7 @@
6262
]
6363
},
6464
"sysctls": {
65-
"description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch.",
65+
"description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.",
6666
"items": {
6767
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.Sysctl"
6868
},
@@ -73,7 +73,7 @@
7373
},
7474
"windowsOptions": {
7575
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.WindowsSecurityContextOptions",
76-
"description": "The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."
76+
"description": "The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux."
7777
}
7878
},
7979
"type": "object",

Diff for: master-local/podspec-v1.json

+4
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@
147147
],
148148
"x-kubernetes-map-type": "atomic"
149149
},
150+
"os": {
151+
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodOS",
152+
"description": "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup This is an alpha field and requires the IdentifyPodOS feature"
153+
},
150154
"overhead": {
151155
"additionalProperties": {
152156
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity"

0 commit comments

Comments
 (0)