kubernetes-models
Version:
46 lines (45 loc) • 1.25 kB
JavaScript
import { register } from "@kubernetes-models/validate";
import { addSchema as IoK8sApiAppsV1beta2ReplicaSetCondition } from "./IoK8sApiAppsV1beta2ReplicaSetCondition.mjs";
const schema = {
"properties": {
"availableReplicas": {
"format": "int32",
"type": "integer",
"nullable": true
},
"conditions": {
"items": {
"$ref": "io.k8s.api.apps.v1beta2.ReplicaSetCondition#"
},
"type": "array",
"nullable": true
},
"fullyLabeledReplicas": {
"format": "int32",
"type": "integer",
"nullable": true
},
"observedGeneration": {
"format": "int64",
"type": "integer",
"nullable": true
},
"readyReplicas": {
"format": "int32",
"type": "integer",
"nullable": true
},
"replicas": {
"format": "int32",
"type": "integer"
}
},
"required": [
"replicas"
],
"type": "object"
};
export function addSchema() {
IoK8sApiAppsV1beta2ReplicaSetCondition();
register("io.k8s.api.apps.v1beta2.ReplicaSetStatus", schema);
}