UNPKG

kubernetes-models

Version:
46 lines (45 loc) 1.32 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApiCoreV1ExecAction } from "./IoK8sApiCoreV1ExecAction.mjs"; import { addSchema as IoK8sApiCoreV1HTTPGetAction } from "./IoK8sApiCoreV1HTTPGetAction.mjs"; import { addSchema as IoK8sApiCoreV1TCPSocketAction } from "./IoK8sApiCoreV1TCPSocketAction.mjs"; const schema = { "properties": { "exec": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.ExecAction#" }, { "type": "null" } ] }, "httpGet": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.HTTPGetAction#" }, { "type": "null" } ] }, "tcpSocket": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.TCPSocketAction#" }, { "type": "null" } ] } }, "type": "object" }; export function addSchema() { IoK8sApiCoreV1ExecAction(); IoK8sApiCoreV1HTTPGetAction(); IoK8sApiCoreV1TCPSocketAction(); register("io.k8s.api.core.v1.LifecycleHandler", schema); }