kubernetes-models
Version:
63 lines (62 loc) • 1.47 kB
JavaScript
import { register } from "@kubernetes-models/validate";
import { addSchema as IoK8sApiCoreV1ContainerState } from "./IoK8sApiCoreV1ContainerState.mjs";
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"
};
export function addSchema() {
IoK8sApiCoreV1ContainerState();
register("io.k8s.api.core.v1.ContainerStatus", schema);
}