kubernetes-models
Version:
114 lines (113 loc) • 3.66 kB
JavaScript
import { register } from "@kubernetes-models/validate";
import { addSchema as IoK8sApiCoreV1NodeAddress } from "./IoK8sApiCoreV1NodeAddress.mjs";
import { addSchema as IoK8sApimachineryPkgApiResourceQuantity } from "@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgApiResourceQuantity";
import { addSchema as IoK8sApiCoreV1NodeCondition } from "./IoK8sApiCoreV1NodeCondition.mjs";
import { addSchema as IoK8sApiCoreV1NodeConfigStatus } from "./IoK8sApiCoreV1NodeConfigStatus.mjs";
import { addSchema as IoK8sApiCoreV1NodeDaemonEndpoints } from "./IoK8sApiCoreV1NodeDaemonEndpoints.mjs";
import { addSchema as IoK8sApiCoreV1ContainerImage } from "./IoK8sApiCoreV1ContainerImage.mjs";
import { addSchema as IoK8sApiCoreV1NodeSystemInfo } from "./IoK8sApiCoreV1NodeSystemInfo.mjs";
import { addSchema as IoK8sApiCoreV1AttachedVolume } from "./IoK8sApiCoreV1AttachedVolume.mjs";
const schema = {
"properties": {
"addresses": {
"items": {
"$ref": "io.k8s.api.core.v1.NodeAddress#"
},
"type": "array",
"nullable": true
},
"allocatable": {
"additionalProperties": {
"$ref": "io.k8s.apimachinery.pkg.api.resource.Quantity#"
},
"type": "object",
"nullable": true
},
"capacity": {
"additionalProperties": {
"$ref": "io.k8s.apimachinery.pkg.api.resource.Quantity#"
},
"type": "object",
"nullable": true
},
"conditions": {
"items": {
"$ref": "io.k8s.api.core.v1.NodeCondition#"
},
"type": "array",
"nullable": true
},
"config": {
"oneOf": [
{
"$ref": "io.k8s.api.core.v1.NodeConfigStatus#"
},
{
"type": "null"
}
]
},
"daemonEndpoints": {
"oneOf": [
{
"$ref": "io.k8s.api.core.v1.NodeDaemonEndpoints#"
},
{
"type": "null"
}
]
},
"images": {
"items": {
"$ref": "io.k8s.api.core.v1.ContainerImage#"
},
"type": "array",
"nullable": true
},
"nodeInfo": {
"oneOf": [
{
"$ref": "io.k8s.api.core.v1.NodeSystemInfo#"
},
{
"type": "null"
}
]
},
"phase": {
"enum": [
"Pending",
"Running",
"Terminated"
],
"type": "string",
"nullable": true
},
"volumesAttached": {
"items": {
"$ref": "io.k8s.api.core.v1.AttachedVolume#"
},
"type": "array",
"nullable": true
},
"volumesInUse": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
}
},
"type": "object"
};
export function addSchema() {
IoK8sApiCoreV1NodeAddress();
IoK8sApimachineryPkgApiResourceQuantity();
IoK8sApiCoreV1NodeCondition();
IoK8sApiCoreV1NodeConfigStatus();
IoK8sApiCoreV1NodeDaemonEndpoints();
IoK8sApiCoreV1ContainerImage();
IoK8sApiCoreV1NodeSystemInfo();
IoK8sApiCoreV1AttachedVolume();
register("io.k8s.api.core.v1.NodeStatus", schema);
}