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