UNPKG

kubernetes-models

Version:
77 lines (76 loc) 2.24 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApimachineryPkgApisMetaV1Time } from "@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgApisMetaV1Time"; import { addSchema as IoK8sApiBatchV1JobCondition } from "./IoK8sApiBatchV1JobCondition.mjs"; import { addSchema as IoK8sApiBatchV1UncountedTerminatedPods } from "./IoK8sApiBatchV1UncountedTerminatedPods.mjs"; 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" }; export function addSchema() { IoK8sApimachineryPkgApisMetaV1Time(); IoK8sApiBatchV1JobCondition(); IoK8sApiBatchV1UncountedTerminatedPods(); register("io.k8s.api.batch.v1.JobStatus", schema); }