UNPKG

kubernetes-models

Version:
76 lines (75 loc) 2.57 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApiAutoscalingV2beta2ContainerResourceMetricSource } from "./IoK8sApiAutoscalingV2beta2ContainerResourceMetricSource.mjs"; import { addSchema as IoK8sApiAutoscalingV2beta2ExternalMetricSource } from "./IoK8sApiAutoscalingV2beta2ExternalMetricSource.mjs"; import { addSchema as IoK8sApiAutoscalingV2beta2ObjectMetricSource } from "./IoK8sApiAutoscalingV2beta2ObjectMetricSource.mjs"; import { addSchema as IoK8sApiAutoscalingV2beta2PodsMetricSource } from "./IoK8sApiAutoscalingV2beta2PodsMetricSource.mjs"; import { addSchema as IoK8sApiAutoscalingV2beta2ResourceMetricSource } from "./IoK8sApiAutoscalingV2beta2ResourceMetricSource.mjs"; const schema = { "properties": { "containerResource": { "oneOf": [ { "$ref": "io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource#" }, { "type": "null" } ] }, "external": { "oneOf": [ { "$ref": "io.k8s.api.autoscaling.v2beta2.ExternalMetricSource#" }, { "type": "null" } ] }, "object": { "oneOf": [ { "$ref": "io.k8s.api.autoscaling.v2beta2.ObjectMetricSource#" }, { "type": "null" } ] }, "pods": { "oneOf": [ { "$ref": "io.k8s.api.autoscaling.v2beta2.PodsMetricSource#" }, { "type": "null" } ] }, "resource": { "oneOf": [ { "$ref": "io.k8s.api.autoscaling.v2beta2.ResourceMetricSource#" }, { "type": "null" } ] }, "type": { "type": "string" } }, "required": [ "type" ], "type": "object" }; export function addSchema() { IoK8sApiAutoscalingV2beta2ContainerResourceMetricSource(); IoK8sApiAutoscalingV2beta2ExternalMetricSource(); IoK8sApiAutoscalingV2beta2ObjectMetricSource(); IoK8sApiAutoscalingV2beta2PodsMetricSource(); IoK8sApiAutoscalingV2beta2ResourceMetricSource(); register("io.k8s.api.autoscaling.v2beta2.MetricSpec", schema); }