kubernetes-models
Version:
81 lines (80 loc) • 2.41 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addSchema = void 0;
const validate_1 = require("@kubernetes-models/validate");
const IoK8sApimachineryPkgApisMetaV1Time_1 = require("@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgApisMetaV1Time");
const IoK8sApiBatchV1JobCondition_1 = require("./IoK8sApiBatchV1JobCondition.js");
const IoK8sApiBatchV1UncountedTerminatedPods_1 = require("./IoK8sApiBatchV1UncountedTerminatedPods.js");
const schema = {
"properties": {
"active": {
"format": "int32",
"type": "integer",
"nullable": true
},
"completedIndexes": {
"type": "string",
"nullable": true
},
"completionTime": {
"oneOf": [
{
"$ref": "io.k8s.apimachinery.pkg.apis.meta.v1.Time#"
},
{
"type": "null"
}
]
},
"conditions": {
"items": {
"$ref": "io.k8s.api.batch.v1.JobCondition#"
},
"type": "array",
"nullable": true
},
"failed": {
"format": "int32",
"type": "integer",
"nullable": true
},
"ready": {
"format": "int32",
"type": "integer",
"nullable": true
},
"startTime": {
"oneOf": [
{
"$ref": "io.k8s.apimachinery.pkg.apis.meta.v1.Time#"
},
{
"type": "null"
}
]
},
"succeeded": {
"format": "int32",
"type": "integer",
"nullable": true
},
"uncountedTerminatedPods": {
"oneOf": [
{
"$ref": "io.k8s.api.batch.v1.UncountedTerminatedPods#"
},
{
"type": "null"
}
]
}
},
"type": "object"
};
function addSchema() {
(0, IoK8sApimachineryPkgApisMetaV1Time_1.addSchema)();
(0, IoK8sApiBatchV1JobCondition_1.addSchema)();
(0, IoK8sApiBatchV1UncountedTerminatedPods_1.addSchema)();
(0, validate_1.register)("io.k8s.api.batch.v1.JobStatus", schema);
}
exports.addSchema = addSchema;