kubernetes-models
Version:
43 lines (42 loc) • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addSchema = void 0;
const validate_1 = require("@kubernetes-models/validate");
const schema = {
"properties": {
"containerPort": {
"format": "int32",
"type": "integer"
},
"hostIP": {
"type": "string",
"nullable": true
},
"hostPort": {
"format": "int32",
"type": "integer",
"nullable": true
},
"name": {
"type": "string",
"nullable": true
},
"protocol": {
"enum": [
"SCTP",
"TCP",
"UDP"
],
"type": "string",
"nullable": true
}
},
"required": [
"containerPort"
],
"type": "object"
};
function addSchema() {
(0, validate_1.register)("io.k8s.api.core.v1.ContainerPort", schema);
}
exports.addSchema = addSchema;