UNPKG

kubernetes-models

Version:
58 lines (57 loc) 1.55 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSchema = void 0; const validate_1 = require("@kubernetes-models/validate"); const IoK8sApiBatchV1JobTemplateSpec_1 = require("./IoK8sApiBatchV1JobTemplateSpec.js"); const schema = { "properties": { "concurrencyPolicy": { "enum": [ "Allow", "Forbid", "Replace" ], "type": "string", "nullable": true }, "failedJobsHistoryLimit": { "format": "int32", "type": "integer", "nullable": true }, "jobTemplate": { "$ref": "io.k8s.api.batch.v1.JobTemplateSpec#" }, "schedule": { "type": "string" }, "startingDeadlineSeconds": { "format": "int64", "type": "integer", "nullable": true }, "successfulJobsHistoryLimit": { "format": "int32", "type": "integer", "nullable": true }, "suspend": { "type": "boolean", "nullable": true }, "timeZone": { "type": "string", "nullable": true } }, "required": [ "schedule", "jobTemplate" ], "type": "object" }; function addSchema() { (0, IoK8sApiBatchV1JobTemplateSpec_1.addSchema)(); (0, validate_1.register)("io.k8s.api.batch.v1.CronJobSpec", schema); } exports.addSchema = addSchema;