UNPKG

kubernetes-models

Version:
92 lines (91 loc) 2.64 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSchema = void 0; const validate_1 = require("@kubernetes-models/validate"); const IoK8sApiCoreV1ExecAction_1 = require("./IoK8sApiCoreV1ExecAction.js"); const IoK8sApiCoreV1GRPCAction_1 = require("./IoK8sApiCoreV1GRPCAction.js"); const IoK8sApiCoreV1HTTPGetAction_1 = require("./IoK8sApiCoreV1HTTPGetAction.js"); const IoK8sApiCoreV1TCPSocketAction_1 = require("./IoK8sApiCoreV1TCPSocketAction.js"); const schema = { "properties": { "exec": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.ExecAction#" }, { "type": "null" } ] }, "failureThreshold": { "format": "int32", "type": "integer", "nullable": true }, "grpc": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.GRPCAction#" }, { "type": "null" } ] }, "httpGet": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.HTTPGetAction#" }, { "type": "null" } ] }, "initialDelaySeconds": { "format": "int32", "type": "integer", "nullable": true }, "periodSeconds": { "format": "int32", "type": "integer", "nullable": true }, "successThreshold": { "format": "int32", "type": "integer", "nullable": true }, "tcpSocket": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.TCPSocketAction#" }, { "type": "null" } ] }, "terminationGracePeriodSeconds": { "format": "int64", "type": "integer", "nullable": true }, "timeoutSeconds": { "format": "int32", "type": "integer", "nullable": true } }, "type": "object" }; function addSchema() { (0, IoK8sApiCoreV1ExecAction_1.addSchema)(); (0, IoK8sApiCoreV1GRPCAction_1.addSchema)(); (0, IoK8sApiCoreV1HTTPGetAction_1.addSchema)(); (0, IoK8sApiCoreV1TCPSocketAction_1.addSchema)(); (0, validate_1.register)("io.k8s.api.core.v1.Probe", schema); } exports.addSchema = addSchema;