UNPKG

kubernetes-models

Version:
37 lines (36 loc) 1.22 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApiAutoscalingV2beta1MetricSpec } from "./IoK8sApiAutoscalingV2beta1MetricSpec.mjs"; import { addSchema as IoK8sApiAutoscalingV2beta1CrossVersionObjectReference } from "./IoK8sApiAutoscalingV2beta1CrossVersionObjectReference.mjs"; const schema = { "properties": { "maxReplicas": { "format": "int32", "type": "integer" }, "metrics": { "items": { "$ref": "io.k8s.api.autoscaling.v2beta1.MetricSpec#" }, "type": "array", "nullable": true }, "minReplicas": { "format": "int32", "type": "integer", "nullable": true }, "scaleTargetRef": { "$ref": "io.k8s.api.autoscaling.v2beta1.CrossVersionObjectReference#" } }, "required": [ "scaleTargetRef", "maxReplicas" ], "type": "object" }; export function addSchema() { IoK8sApiAutoscalingV2beta1MetricSpec(); IoK8sApiAutoscalingV2beta1CrossVersionObjectReference(); register("io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerSpec", schema); }