kubernetes-models
Version:
80 lines (79 loc) • 2.64 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addSchema = void 0;
const validate_1 = require("@kubernetes-models/validate");
const IoK8sApiAutoscalingV2ContainerResourceMetricSource_1 = require("./IoK8sApiAutoscalingV2ContainerResourceMetricSource.js");
const IoK8sApiAutoscalingV2ExternalMetricSource_1 = require("./IoK8sApiAutoscalingV2ExternalMetricSource.js");
const IoK8sApiAutoscalingV2ObjectMetricSource_1 = require("./IoK8sApiAutoscalingV2ObjectMetricSource.js");
const IoK8sApiAutoscalingV2PodsMetricSource_1 = require("./IoK8sApiAutoscalingV2PodsMetricSource.js");
const IoK8sApiAutoscalingV2ResourceMetricSource_1 = require("./IoK8sApiAutoscalingV2ResourceMetricSource.js");
const schema = {
"properties": {
"containerResource": {
"oneOf": [
{
"$ref": "io.k8s.api.autoscaling.v2.ContainerResourceMetricSource#"
},
{
"type": "null"
}
]
},
"external": {
"oneOf": [
{
"$ref": "io.k8s.api.autoscaling.v2.ExternalMetricSource#"
},
{
"type": "null"
}
]
},
"object": {
"oneOf": [
{
"$ref": "io.k8s.api.autoscaling.v2.ObjectMetricSource#"
},
{
"type": "null"
}
]
},
"pods": {
"oneOf": [
{
"$ref": "io.k8s.api.autoscaling.v2.PodsMetricSource#"
},
{
"type": "null"
}
]
},
"resource": {
"oneOf": [
{
"$ref": "io.k8s.api.autoscaling.v2.ResourceMetricSource#"
},
{
"type": "null"
}
]
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
};
function addSchema() {
(0, IoK8sApiAutoscalingV2ContainerResourceMetricSource_1.addSchema)();
(0, IoK8sApiAutoscalingV2ExternalMetricSource_1.addSchema)();
(0, IoK8sApiAutoscalingV2ObjectMetricSource_1.addSchema)();
(0, IoK8sApiAutoscalingV2PodsMetricSource_1.addSchema)();
(0, IoK8sApiAutoscalingV2ResourceMetricSource_1.addSchema)();
(0, validate_1.register)("io.k8s.api.autoscaling.v2.MetricSpec", schema);
}
exports.addSchema = addSchema;