UNPKG

kubernetes-models

Version:
37 lines (36 loc) 1.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSchema = void 0; const validate_1 = require("@kubernetes-models/validate"); const IoK8sApiAutoscalingV1CrossVersionObjectReference_1 = require("./IoK8sApiAutoscalingV1CrossVersionObjectReference.js"); const schema = { "properties": { "maxReplicas": { "format": "int32", "type": "integer" }, "minReplicas": { "format": "int32", "type": "integer", "nullable": true }, "scaleTargetRef": { "$ref": "io.k8s.api.autoscaling.v1.CrossVersionObjectReference#" }, "targetCPUUtilizationPercentage": { "format": "int32", "type": "integer", "nullable": true } }, "required": [ "scaleTargetRef", "maxReplicas" ], "type": "object" }; function addSchema() { (0, IoK8sApiAutoscalingV1CrossVersionObjectReference_1.addSchema)(); (0, validate_1.register)("io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec", schema); } exports.addSchema = addSchema;