kubernetes-models
Version:
118 lines (117 loc) • 3.86 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addSchema = void 0;
const validate_1 = require("@kubernetes-models/validate");
const IoK8sApiCoreV1NodeAddress_1 = require("./IoK8sApiCoreV1NodeAddress.js");
const IoK8sApimachineryPkgApiResourceQuantity_1 = require("@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgApiResourceQuantity");
const IoK8sApiCoreV1NodeCondition_1 = require("./IoK8sApiCoreV1NodeCondition.js");
const IoK8sApiCoreV1NodeConfigStatus_1 = require("./IoK8sApiCoreV1NodeConfigStatus.js");
const IoK8sApiCoreV1NodeDaemonEndpoints_1 = require("./IoK8sApiCoreV1NodeDaemonEndpoints.js");
const IoK8sApiCoreV1ContainerImage_1 = require("./IoK8sApiCoreV1ContainerImage.js");
const IoK8sApiCoreV1NodeSystemInfo_1 = require("./IoK8sApiCoreV1NodeSystemInfo.js");
const IoK8sApiCoreV1AttachedVolume_1 = require("./IoK8sApiCoreV1AttachedVolume.js");
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"
};
function addSchema() {
(0, IoK8sApiCoreV1NodeAddress_1.addSchema)();
(0, IoK8sApimachineryPkgApiResourceQuantity_1.addSchema)();
(0, IoK8sApiCoreV1NodeCondition_1.addSchema)();
(0, IoK8sApiCoreV1NodeConfigStatus_1.addSchema)();
(0, IoK8sApiCoreV1NodeDaemonEndpoints_1.addSchema)();
(0, IoK8sApiCoreV1ContainerImage_1.addSchema)();
(0, IoK8sApiCoreV1NodeSystemInfo_1.addSchema)();
(0, IoK8sApiCoreV1AttachedVolume_1.addSchema)();
(0, validate_1.register)("io.k8s.api.core.v1.NodeStatus", schema);
}
exports.addSchema = addSchema;