UNPKG

kubernetes-models

Version:
76 lines (75 loc) 2.46 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApiAutoscalingV2ContainerResourceMetricSource } from "./IoK8sApiAutoscalingV2ContainerResourceMetricSource.mjs"; import { addSchema as IoK8sApiAutoscalingV2ExternalMetricSource } from "./IoK8sApiAutoscalingV2ExternalMetricSource.mjs"; import { addSchema as IoK8sApiAutoscalingV2ObjectMetricSource } from "./IoK8sApiAutoscalingV2ObjectMetricSource.mjs"; import { addSchema as IoK8sApiAutoscalingV2PodsMetricSource } from "./IoK8sApiAutoscalingV2PodsMetricSource.mjs"; import { addSchema as IoK8sApiAutoscalingV2ResourceMetricSource } from "./IoK8sApiAutoscalingV2ResourceMetricSource.mjs"; 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" }; export function addSchema() { IoK8sApiAutoscalingV2ContainerResourceMetricSource(); IoK8sApiAutoscalingV2ExternalMetricSource(); IoK8sApiAutoscalingV2ObjectMetricSource(); IoK8sApiAutoscalingV2PodsMetricSource(); IoK8sApiAutoscalingV2ResourceMetricSource(); register("io.k8s.api.autoscaling.v2.MetricSpec", schema); }