UNPKG

kubernetes-models

Version:
24 lines (23 loc) 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IoK8sApiCoreV1EndpointSubset = exports.EndpointSubset = void 0; const base_1 = require("@kubernetes-models/base"); const IoK8sApiCoreV1EndpointSubset_1 = require("../_schemas/IoK8sApiCoreV1EndpointSubset.js"); /** * EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: * * { * Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], * Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] * } * * The resulting set of endpoints can be viewed as: * * a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], * b: [ 10.10.1.1:309, 10.10.2.2:309 ] */ class EndpointSubset extends base_1.Model { } exports.EndpointSubset = EndpointSubset; exports.IoK8sApiCoreV1EndpointSubset = EndpointSubset; (0, base_1.setSchema)(EndpointSubset, "io.k8s.api.core.v1.EndpointSubset", IoK8sApiCoreV1EndpointSubset_1.addSchema);