kubernetes-models
Version:
59 lines (58 loc) • 1.88 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addSchema = void 0;
const validate_1 = require("@kubernetes-models/validate");
const IoK8sApimachineryPkgApiResourceQuantity_1 = require("@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgApiResourceQuantity");
const IoK8sApiCoreV1PersistentVolumeClaimCondition_1 = require("./IoK8sApiCoreV1PersistentVolumeClaimCondition.js");
const schema = {
"properties": {
"accessModes": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
},
"allocatedResources": {
"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.PersistentVolumeClaimCondition#"
},
"type": "array",
"nullable": true
},
"phase": {
"enum": [
"Bound",
"Lost",
"Pending"
],
"type": "string",
"nullable": true
},
"resizeStatus": {
"type": "string",
"nullable": true
}
},
"type": "object"
};
function addSchema() {
(0, IoK8sApimachineryPkgApiResourceQuantity_1.addSchema)();
(0, IoK8sApiCoreV1PersistentVolumeClaimCondition_1.addSchema)();
(0, validate_1.register)("io.k8s.api.core.v1.PersistentVolumeClaimStatus", schema);
}
exports.addSchema = addSchema;