forked from yannh/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yann Hamon
committed
Nov 11, 2021
1 parent
752d01f
commit aad071d
Showing
144 changed files
with
20,818 additions
and
24 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
master-local/containerresourcemetricsource-autoscaling-v2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
30
master-local/containerresourcemetricstatus-autoscaling-v2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
32
master-local/crossversionobjectreference-autoscaling-v2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
15
master-local/horizontalpodautoscalerbehavior-autoscaling-v2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
43
master-local/horizontalpodautoscalercondition-autoscaling-v2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
Oops, something went wrong.