Skip to content

Commit

Permalink
Adding new schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Yann Hamon committed Nov 11, 2021
1 parent 752d01f commit aad071d
Show file tree
Hide file tree
Showing 144 changed files with 20,818 additions and 24 deletions.
613 changes: 612 additions & 1 deletion master-local/_definitions.json

Large diffs are not rendered by default.

72 changes: 72 additions & 0 deletions master-local/all.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,78 @@
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v1.ScaleStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.ContainerResourceMetricSource"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.ContainerResourceMetricStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.CrossVersionObjectReference"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.ExternalMetricSource"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.ExternalMetricStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.HPAScalingPolicy"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.HPAScalingRules"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerCondition"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.MetricIdentifier"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.MetricSpec"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.MetricStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.MetricTarget"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.MetricValueStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.ObjectMetricSource"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.ObjectMetricStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.PodsMetricSource"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.PodsMetricStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.ResourceMetricSource"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.ResourceMetricStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2beta1.ContainerResourceMetricSource"
},
Expand Down
30 changes: 30 additions & 0 deletions master-local/containerresourcemetricsource-autoscaling-v2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"description": "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.",
"properties": {
"container": {
"description": "container is the name of the container in the pods of the scaling target",
"type": [
"string",
"null"
]
},
"name": {
"description": "name is the name of the resource in question.",
"type": [
"string",
"null"
]
},
"target": {
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.MetricTarget",
"description": "target specifies the target value for the given metric"
}
},
"required": [
"name",
"target",
"container"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
30 changes: 30 additions & 0 deletions master-local/containerresourcemetricstatus-autoscaling-v2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"description": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
"properties": {
"container": {
"description": "Container is the name of the container in the pods of the scaling target",
"type": [
"string",
"null"
]
},
"current": {
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.MetricValueStatus",
"description": "current contains the current value for the given metric"
},
"name": {
"description": "Name is the name of the resource in question.",
"type": [
"string",
"null"
]
}
},
"required": [
"name",
"current",
"container"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
32 changes: 32 additions & 0 deletions master-local/crossversionobjectreference-autoscaling-v2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
"properties": {
"apiVersion": {
"description": "API version of the referent",
"type": [
"string",
"null"
]
},
"kind": {
"description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"",
"type": [
"string",
"null"
]
},
"name": {
"description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
"type": [
"string",
"null"
]
}
},
"required": [
"kind",
"name"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
6 changes: 6 additions & 0 deletions master-local/deleteoptions-meta-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"authorization.k8s.io/v1",
"authorization.k8s.io/v1beta1",
"autoscaling/v1",
"autoscaling/v2",
"autoscaling/v2beta1",
"autoscaling/v2beta2",
"batch/v1",
Expand Down Expand Up @@ -198,6 +199,11 @@
"kind": "DeleteOptions",
"version": "v1"
},
{
"group": "autoscaling",
"kind": "DeleteOptions",
"version": "v2"
},
{
"group": "autoscaling",
"kind": "DeleteOptions",
Expand Down
5 changes: 5 additions & 0 deletions master-local/deleteoptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@
"kind": "DeleteOptions",
"version": "v1"
},
{
"group": "autoscaling",
"kind": "DeleteOptions",
"version": "v2"
},
{
"group": "autoscaling",
"kind": "DeleteOptions",
Expand Down
19 changes: 19 additions & 0 deletions master-local/externalmetricsource-autoscaling-v2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"description": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).",
"properties": {
"metric": {
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.MetricIdentifier",
"description": "metric identifies the target metric by name and selector"
},
"target": {
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.MetricTarget",
"description": "target specifies the target value for the given metric"
}
},
"required": [
"metric",
"target"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
19 changes: 19 additions & 0 deletions master-local/externalmetricstatus-autoscaling-v2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.",
"properties": {
"current": {
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.MetricValueStatus",
"description": "current contains the current value for the given metric"
},
"metric": {
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.MetricIdentifier",
"description": "metric identifies the target metric by name and selector"
}
},
"required": [
"metric",
"current"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
46 changes: 46 additions & 0 deletions master-local/horizontalpodautoscaler-autoscaling-v2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.",
"properties": {
"apiVersion": {
"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",
"type": [
"string",
"null"
],
"enum": [
"autoscaling/v2"
]
},
"kind": {
"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",
"type": [
"string",
"null"
],
"enum": [
"HorizontalPodAutoscaler"
]
},
"metadata": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta",
"description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
},
"spec": {
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec",
"description": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status."
},
"status": {
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerStatus",
"description": "status is the current information about the autoscaler."
}
},
"type": "object",
"x-kubernetes-group-version-kind": [
{
"group": "autoscaling",
"kind": "HorizontalPodAutoscaler",
"version": "v2"
}
],
"$schema": "http://json-schema.org/schema#"
}
15 changes: 15 additions & 0 deletions master-local/horizontalpodautoscalerbehavior-autoscaling-v2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"description": "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).",
"properties": {
"scaleDown": {
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.HPAScalingRules",
"description": "scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used)."
},
"scaleUp": {
"$ref": "_definitions.json#/definitions/io.k8s.api.autoscaling.v2.HPAScalingRules",
"description": "scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:\n * increase no more than 4 pods per 60 seconds\n * double the number of pods per 60 seconds\nNo stabilization is used."
}
},
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
43 changes: 43 additions & 0 deletions master-local/horizontalpodautoscalercondition-autoscaling-v2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.",
"properties": {
"lastTransitionTime": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
"description": "lastTransitionTime is the last time the condition transitioned from one status to another"
},
"message": {
"description": "message is a human-readable explanation containing details about the transition",
"type": [
"string",
"null"
]
},
"reason": {
"description": "reason is the reason for the condition's last transition.",
"type": [
"string",
"null"
]
},
"status": {
"description": "status is the status of the condition (True, False, Unknown)",
"type": [
"string",
"null"
]
},
"type": {
"description": "type describes the current condition",
"type": [
"string",
"null"
]
}
},
"required": [
"type",
"status"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
Loading

0 comments on commit aad071d

Please sign in to comment.