UNPKG

kubernetes-models

Version:
62 lines (61 loc) 1.87 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApimachineryPkgApisMetaV1ObjectMeta } from "@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgApisMetaV1ObjectMeta"; import { addSchema as IoK8sApiFlowcontrolV1beta2FlowSchemaSpec } from "./IoK8sApiFlowcontrolV1beta2FlowSchemaSpec.mjs"; import { addSchema as IoK8sApiFlowcontrolV1beta2FlowSchemaStatus } from "./IoK8sApiFlowcontrolV1beta2FlowSchemaStatus.mjs"; const schema = { "properties": { "apiVersion": { "type": "string", "enum": [ "flowcontrol.apiserver.k8s.io/v1beta2" ] }, "kind": { "type": "string", "enum": [ "FlowSchema" ] }, "metadata": { "oneOf": [ { "$ref": "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#" }, { "type": "null" } ] }, "spec": { "oneOf": [ { "$ref": "io.k8s.api.flowcontrol.v1beta2.FlowSchemaSpec#" }, { "type": "null" } ] }, "status": { "oneOf": [ { "$ref": "io.k8s.api.flowcontrol.v1beta2.FlowSchemaStatus#" }, { "type": "null" } ] } }, "type": "object", "required": [ "apiVersion", "kind" ] }; export function addSchema() { IoK8sApimachineryPkgApisMetaV1ObjectMeta(); IoK8sApiFlowcontrolV1beta2FlowSchemaSpec(); IoK8sApiFlowcontrolV1beta2FlowSchemaStatus(); register("io.k8s.api.flowcontrol.v1beta2.FlowSchema", schema); }