UNPKG

kubernetes-models

Version:
54 lines (53 loc) 1.5 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApiAppsV1beta2DeploymentCondition } from "./IoK8sApiAppsV1beta2DeploymentCondition.mjs"; const schema = { "properties": { "availableReplicas": { "format": "int32", "type": "integer", "nullable": true }, "collisionCount": { "format": "int32", "type": "integer", "nullable": true }, "conditions": { "items": { "$ref": "io.k8s.api.apps.v1beta2.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() { IoK8sApiAppsV1beta2DeploymentCondition(); register("io.k8s.api.apps.v1beta2.DeploymentStatus", schema); }