kubernetes-models
Version:
55 lines (54 loc) • 1.47 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addSchema = void 0;
const validate_1 = require("@kubernetes-models/validate");
const IoK8sApimachineryPkgUtilIntstrIntOrString_1 = require("@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgUtilIntstrIntOrString");
const schema = {
"properties": {
"appProtocol": {
"type": "string",
"nullable": true
},
"name": {
"type": "string",
"nullable": true
},
"nodePort": {
"format": "int32",
"type": "integer",
"nullable": true
},
"port": {
"format": "int32",
"type": "integer"
},
"protocol": {
"enum": [
"SCTP",
"TCP",
"UDP"
],
"type": "string",
"nullable": true
},
"targetPort": {
"oneOf": [
{
"$ref": "io.k8s.apimachinery.pkg.util.intstr.IntOrString#"
},
{
"type": "null"
}
]
}
},
"required": [
"port"
],
"type": "object"
};
function addSchema() {
(0, IoK8sApimachineryPkgUtilIntstrIntOrString_1.addSchema)();
(0, validate_1.register)("io.k8s.api.core.v1.ServicePort", schema);
}
exports.addSchema = addSchema;