UNPKG

kubernetes-models

Version:
67 lines (66 loc) 1.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSchema = void 0; const validate_1 = require("@kubernetes-models/validate"); const IoK8sApiCoreV1ContainerState_1 = require("./IoK8sApiCoreV1ContainerState.js"); const schema = { "properties": { "containerID": { "type": "string", "nullable": true }, "image": { "type": "string" }, "imageID": { "type": "string" }, "lastState": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.ContainerState#" }, { "type": "null" } ] }, "name": { "type": "string" }, "ready": { "type": "boolean" }, "restartCount": { "format": "int32", "type": "integer" }, "started": { "type": "boolean", "nullable": true }, "state": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.ContainerState#" }, { "type": "null" } ] } }, "required": [ "name", "ready", "restartCount", "image", "imageID" ], "type": "object" }; function addSchema() { (0, IoK8sApiCoreV1ContainerState_1.addSchema)(); (0, validate_1.register)("io.k8s.api.core.v1.ContainerStatus", schema); } exports.addSchema = addSchema;