UNPKG

kubernetes-models

Version:
64 lines (63 loc) 1.69 kB
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApiAppsV1StatefulSetCondition } from "./IoK8sApiAppsV1StatefulSetCondition.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.v1.StatefulSetCondition#" }, "type": "array", "nullable": true }, "currentReplicas": { "format": "int32", "type": "integer", "nullable": true }, "currentRevision": { "type": "string", "nullable": true }, "observedGeneration": { "format": "int64", "type": "integer", "nullable": true }, "readyReplicas": { "format": "int32", "type": "integer", "nullable": true }, "replicas": { "format": "int32", "type": "integer" }, "updateRevision": { "type": "string", "nullable": true }, "updatedReplicas": { "format": "int32", "type": "integer", "nullable": true } }, "required": [ "replicas" ], "type": "object" }; export function addSchema() { IoK8sApiAppsV1StatefulSetCondition(); register("io.k8s.api.apps.v1.StatefulSetStatus", schema); }