Skip to content

Commit

Permalink
Adding new schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksoncage committed Nov 5, 2022
1 parent 39f8633 commit 0f69b40
Show file tree
Hide file tree
Showing 152 changed files with 3,671 additions and 48 deletions.
30 changes: 28 additions & 2 deletions master-local/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -7419,6 +7419,19 @@
],
"type": "object"
},
"io.k8s.api.core.v1.PodSchedulingGate": {
"description": "PodSchedulingGate is associated to a Pod to guard its scheduling.",
"properties": {
"name": {
"description": "Name of the scheduling gate. Each scheduling gate must have a unique name field.",
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"io.k8s.api.core.v1.PodSecurityContext": {
"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.",
"properties": {
Expand Down Expand Up @@ -7623,6 +7636,19 @@
"description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.",
"type": "string"
},
"schedulingGates": {
"description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. More info: https://git.k8s.io/enhancements/keps/sig-scheduling/3521-pod-scheduling-readiness.\n\nThis is an alpha-level feature enabled by PodSchedulingReadiness feature gate.",
"items": {
"$ref": "#/definitions/io.k8s.api.core.v1.PodSchedulingGate"
},
"type": "array",
"x-kubernetes-list-map-keys": [
"name"
],
"x-kubernetes-list-type": "map",
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge"
},
"securityContext": {
"$ref": "#/definitions/io.k8s.api.core.v1.PodSecurityContext",
"description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field."
Expand Down Expand Up @@ -9810,11 +9836,11 @@
"type": "boolean"
},
"serving": {
"description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.",
"description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.",
"type": "boolean"
},
"terminating": {
"description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.",
"description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.",
"type": "boolean"
}
},
Expand Down
3 changes: 3 additions & 0 deletions master-local/all.json
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,9 @@
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodReadinessGate"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodSchedulingGate"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodSecurityContext"
},
Expand Down
4 changes: 2 additions & 2 deletions master-local/endpointconditions-discovery-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
]
},
"serving": {
"description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.",
"description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.",
"type": [
"boolean",
"null"
]
},
"terminating": {
"description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.",
"description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.",
"type": [
"boolean",
"null"
Expand Down
4 changes: 2 additions & 2 deletions master-local/endpointconditions.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
]
},
"serving": {
"description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.",
"description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.",
"type": [
"boolean",
"null"
]
},
"terminating": {
"description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.",
"description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.",
"type": [
"boolean",
"null"
Expand Down
17 changes: 17 additions & 0 deletions master-local/podschedulinggate-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"description": "PodSchedulingGate is associated to a Pod to guard its scheduling.",
"properties": {
"name": {
"description": "Name of the scheduling gate. Each scheduling gate must have a unique name field.",
"type": [
"string",
"null"
]
}
},
"required": [
"name"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
17 changes: 17 additions & 0 deletions master-local/podschedulinggate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"description": "PodSchedulingGate is associated to a Pod to guard its scheduling.",
"properties": {
"name": {
"description": "Name of the scheduling gate. Each scheduling gate must have a unique name field.",
"type": [
"string",
"null"
]
}
},
"required": [
"name"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
16 changes: 16 additions & 0 deletions master-local/podspec-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,22 @@
"null"
]
},
"schedulingGates": {
"description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. More info: https://git.k8s.io/enhancements/keps/sig-scheduling/3521-pod-scheduling-readiness.\n\nThis is an alpha-level feature enabled by PodSchedulingReadiness feature gate.",
"items": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodSchedulingGate"
},
"type": [
"array",
"null"
],
"x-kubernetes-list-map-keys": [
"name"
],
"x-kubernetes-list-type": "map",
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge"
},
"securityContext": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodSecurityContext",
"description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field."
Expand Down
16 changes: 16 additions & 0 deletions master-local/podspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,22 @@
"null"
]
},
"schedulingGates": {
"description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. More info: https://git.k8s.io/enhancements/keps/sig-scheduling/3521-pod-scheduling-readiness.\n\nThis is an alpha-level feature enabled by PodSchedulingReadiness feature gate.",
"items": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodSchedulingGate"
},
"type": [
"array",
"null"
],
"x-kubernetes-list-map-keys": [
"name"
],
"x-kubernetes-list-type": "map",
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge"
},
"securityContext": {
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodSecurityContext",
"description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field."
Expand Down
31 changes: 29 additions & 2 deletions master-standalone-strict/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -7664,6 +7664,20 @@
"type": "object",
"additionalProperties": false
},
"io.k8s.api.core.v1.PodSchedulingGate": {
"description": "PodSchedulingGate is associated to a Pod to guard its scheduling.",
"properties": {
"name": {
"description": "Name of the scheduling gate. Each scheduling gate must have a unique name field.",
"type": "string"
}
},
"required": [
"name"
],
"type": "object",
"additionalProperties": false
},
"io.k8s.api.core.v1.PodSecurityContext": {
"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.",
"properties": {
Expand Down Expand Up @@ -7869,6 +7883,19 @@
"description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.",
"type": "string"
},
"schedulingGates": {
"description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. More info: https://git.k8s.io/enhancements/keps/sig-scheduling/3521-pod-scheduling-readiness.\n\nThis is an alpha-level feature enabled by PodSchedulingReadiness feature gate.",
"items": {
"$ref": "#/definitions/io.k8s.api.core.v1.PodSchedulingGate"
},
"type": "array",
"x-kubernetes-list-map-keys": [
"name"
],
"x-kubernetes-list-type": "map",
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge"
},
"securityContext": {
"$ref": "#/definitions/io.k8s.api.core.v1.PodSecurityContext",
"description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field."
Expand Down Expand Up @@ -10122,11 +10149,11 @@
"type": "boolean"
},
"serving": {
"description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.",
"description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.",
"type": "boolean"
},
"terminating": {
"description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.",
"description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.",
"type": "boolean"
}
},
Expand Down
3 changes: 3 additions & 0 deletions master-standalone-strict/all.json
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,9 @@
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodReadinessGate"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodSchedulingGate"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.PodSecurityContext"
},
Expand Down
30 changes: 30 additions & 0 deletions master-standalone-strict/cronjob-batch-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -7529,6 +7529,36 @@
"null"
]
},
"schedulingGates": {
"description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. More info: https://git.k8s.io/enhancements/keps/sig-scheduling/3521-pod-scheduling-readiness.\n\nThis is an alpha-level feature enabled by PodSchedulingReadiness feature gate.",
"items": {
"description": "PodSchedulingGate is associated to a Pod to guard its scheduling.",
"properties": {
"name": {
"description": "Name of the scheduling gate. Each scheduling gate must have a unique name field.",
"type": "string"
}
},
"required": [
"name"
],
"type": [
"object",
"null"
],
"additionalProperties": false
},
"type": [
"array",
"null"
],
"x-kubernetes-list-map-keys": [
"name"
],
"x-kubernetes-list-type": "map",
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge"
},
"securityContext": {
"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.",
"properties": {
Expand Down
30 changes: 30 additions & 0 deletions master-standalone-strict/cronjob.json
Original file line number Diff line number Diff line change
Expand Up @@ -7526,6 +7526,36 @@
"null"
]
},
"schedulingGates": {
"description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. More info: https://git.k8s.io/enhancements/keps/sig-scheduling/3521-pod-scheduling-readiness.\n\nThis is an alpha-level feature enabled by PodSchedulingReadiness feature gate.",
"items": {
"description": "PodSchedulingGate is associated to a Pod to guard its scheduling.",
"properties": {
"name": {
"description": "Name of the scheduling gate. Each scheduling gate must have a unique name field.",
"type": "string"
}
},
"required": [
"name"
],
"type": [
"object",
"null"
],
"additionalProperties": false
},
"type": [
"array",
"null"
],
"x-kubernetes-list-map-keys": [
"name"
],
"x-kubernetes-list-type": "map",
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge"
},
"securityContext": {
"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.",
"properties": {
Expand Down
30 changes: 30 additions & 0 deletions master-standalone-strict/cronjoblist-batch-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -7544,6 +7544,36 @@
"null"
]
},
"schedulingGates": {
"description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. More info: https://git.k8s.io/enhancements/keps/sig-scheduling/3521-pod-scheduling-readiness.\n\nThis is an alpha-level feature enabled by PodSchedulingReadiness feature gate.",
"items": {
"description": "PodSchedulingGate is associated to a Pod to guard its scheduling.",
"properties": {
"name": {
"description": "Name of the scheduling gate. Each scheduling gate must have a unique name field.",
"type": "string"
}
},
"required": [
"name"
],
"type": [
"object",
"null"
],
"additionalProperties": false
},
"type": [
"array",
"null"
],
"x-kubernetes-list-map-keys": [
"name"
],
"x-kubernetes-list-type": "map",
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge"
},
"securityContext": {
"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.",
"properties": {
Expand Down
Loading

0 comments on commit 0f69b40

Please sign in to comment.