kubernetes-models
Version:
20 lines (19 loc) • 781 B
JavaScript
import { Model, setSchema } from "@kubernetes-models/base";
import { addSchema } from "../_schemas/IoK8sApiCoreV1EndpointSubset.mjs";
/**
* 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 ]
*/
export class EndpointSubset extends Model {
}
setSchema(EndpointSubset, "io.k8s.api.core.v1.EndpointSubset", addSchema);
export { EndpointSubset as IoK8sApiCoreV1EndpointSubset };