UNPKG

kubernetes-models

Version:
54 lines (53 loc) 1.53 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApiExtensionsV1beta1DeploymentCondition } from "./IoK8sApiExtensionsV1beta1DeploymentCondition.mjs"; const schema = { "properties": { "availableReplicas": { "format": "int32", "type": "integer", "nullable": true }, "collisionCount": { "format": "int32", "type": "integer", "nullable": true }, "conditions": { "items": { "$ref": "io.k8s.api.extensions.v1beta1.DeploymentCondition#" }, "type": "array", "nullable": true }, "observedGeneration": { "format": "int64", "type": "integer", "nullable": true }, "readyReplicas": { "format": "int32", "type": "integer", "nullable": true }, "replicas": { "format": "int32", "type": "integer", "nullable": true }, "unavailableReplicas": { "format": "int32", "type": "integer", "nullable": true }, "updatedReplicas": { "format": "int32", "type": "integer", "nullable": true } }, "type": "object" }; export function addSchema() { IoK8sApiExtensionsV1beta1DeploymentCondition(); register("io.k8s.api.extensions.v1beta1.DeploymentStatus", schema); }