kubernetes-models
Version:
53 lines (52 loc) • 1.61 kB
JavaScript
import { register } from "@kubernetes-models/validate";
import { addSchema as IoK8sApimachineryPkgApiResourceQuantity } from "@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgApiResourceQuantity";
const schema = {
"properties": {
"default": {
"additionalProperties": {
"$ref": "io.k8s.apimachinery.pkg.api.resource.Quantity#"
},
"type": "object",
"nullable": true
},
"defaultRequest": {
"additionalProperties": {
"$ref": "io.k8s.apimachinery.pkg.api.resource.Quantity#"
},
"type": "object",
"nullable": true
},
"max": {
"additionalProperties": {
"$ref": "io.k8s.apimachinery.pkg.api.resource.Quantity#"
},
"type": "object",
"nullable": true
},
"maxLimitRequestRatio": {
"additionalProperties": {
"$ref": "io.k8s.apimachinery.pkg.api.resource.Quantity#"
},
"type": "object",
"nullable": true
},
"min": {
"additionalProperties": {
"$ref": "io.k8s.apimachinery.pkg.api.resource.Quantity#"
},
"type": "object",
"nullable": true
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
};
export function addSchema() {
IoK8sApimachineryPkgApiResourceQuantity();
register("io.k8s.api.core.v1.LimitRangeItem", schema);
}