UNPKG

kubernetes-models

Version:
53 lines (52 loc) 1.81 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSchema = void 0; const validate_1 = require("@kubernetes-models/validate"); const IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior_1 = require("./IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior.js"); const IoK8sApiAutoscalingV2MetricSpec_1 = require("./IoK8sApiAutoscalingV2MetricSpec.js"); const IoK8sApiAutoscalingV2CrossVersionObjectReference_1 = require("./IoK8sApiAutoscalingV2CrossVersionObjectReference.js"); const schema = { "properties": { "behavior": { "oneOf": [ { "$ref": "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior#" }, { "type": "null" } ] }, "maxReplicas": { "format": "int32", "type": "integer" }, "metrics": { "items": { "$ref": "io.k8s.api.autoscaling.v2.MetricSpec#" }, "type": "array", "nullable": true }, "minReplicas": { "format": "int32", "type": "integer", "nullable": true }, "scaleTargetRef": { "$ref": "io.k8s.api.autoscaling.v2.CrossVersionObjectReference#" } }, "required": [ "scaleTargetRef", "maxReplicas" ], "type": "object" }; function addSchema() { (0, IoK8sApiAutoscalingV2HorizontalPodAutoscalerBehavior_1.addSchema)(); (0, IoK8sApiAutoscalingV2MetricSpec_1.addSchema)(); (0, IoK8sApiAutoscalingV2CrossVersionObjectReference_1.addSchema)(); (0, validate_1.register)("io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec", schema); } exports.addSchema = addSchema;