kubernetes-models
Version:
50 lines (49 loc) • 1.48 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addSchema = void 0;
const validate_1 = require("@kubernetes-models/validate");
const IoK8sApiCoreV1ExecAction_1 = require("./IoK8sApiCoreV1ExecAction.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"
}
]
},
"httpGet": {
"oneOf": [
{
"$ref": "io.k8s.api.core.v1.HTTPGetAction#"
},
{
"type": "null"
}
]
},
"tcpSocket": {
"oneOf": [
{
"$ref": "io.k8s.api.core.v1.TCPSocketAction#"
},
{
"type": "null"
}
]
}
},
"type": "object"
};
function addSchema() {
(0, IoK8sApiCoreV1ExecAction_1.addSchema)();
(0, IoK8sApiCoreV1HTTPGetAction_1.addSchema)();
(0, IoK8sApiCoreV1TCPSocketAction_1.addSchema)();
(0, validate_1.register)("io.k8s.api.core.v1.Handler", schema);
}
exports.addSchema = addSchema;