kubernetes-models
Version:
83 lines (82 loc) • 2.46 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addSchema = void 0;
const validate_1 = require("@kubernetes-models/validate");
const IoK8sApiBatchV1PodFailurePolicy_1 = require("./IoK8sApiBatchV1PodFailurePolicy.js");
const IoK8sApimachineryPkgApisMetaV1LabelSelector_1 = require("@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgApisMetaV1LabelSelector");
const IoK8sApiCoreV1PodTemplateSpec_1 = require("./IoK8sApiCoreV1PodTemplateSpec.js");
const schema = {
"properties": {
"activeDeadlineSeconds": {
"format": "int64",
"type": "integer",
"nullable": true
},
"backoffLimit": {
"format": "int32",
"type": "integer",
"nullable": true
},
"completionMode": {
"type": "string",
"nullable": true
},
"completions": {
"format": "int32",
"type": "integer",
"nullable": true
},
"manualSelector": {
"type": "boolean",
"nullable": true
},
"parallelism": {
"format": "int32",
"type": "integer",
"nullable": true
},
"podFailurePolicy": {
"oneOf": [
{
"$ref": "io.k8s.api.batch.v1.PodFailurePolicy#"
},
{
"type": "null"
}
]
},
"selector": {
"oneOf": [
{
"$ref": "io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector#"
},
{
"type": "null"
}
]
},
"suspend": {
"type": "boolean",
"nullable": true
},
"template": {
"$ref": "io.k8s.api.core.v1.PodTemplateSpec#"
},
"ttlSecondsAfterFinished": {
"format": "int32",
"type": "integer",
"nullable": true
}
},
"required": [
"template"
],
"type": "object"
};
function addSchema() {
(0, IoK8sApiBatchV1PodFailurePolicy_1.addSchema)();
(0, IoK8sApimachineryPkgApisMetaV1LabelSelector_1.addSchema)();
(0, IoK8sApiCoreV1PodTemplateSpec_1.addSchema)();
(0, validate_1.register)("io.k8s.api.batch.v1.JobSpec", schema);
}
exports.addSchema = addSchema;