import { IComGithubCiliumCiliumPkgK8sApisCiliumIoV2PortInfo } from "./PortInfo.js"; import { ModelData, Model } from "@kubernetes-models/base"; export interface IServiceInfo { /** * Namespace is the Kubernetes service namespace. * The service namespace must match the namespace of the parent Local * Redirect Policy. For Cluster-wide Local Redirect Policy, this * can be any namespace. */ "namespace": string; /** * Name is the name of a destination Kubernetes service that identifies traffic * to be redirected. * The service type needs to be ClusterIP. * * Example: * When this field is populated with 'serviceName:myService', all the traffic * destined to the cluster IP of this service at the (specified) * service port(s) will be redirected. */ "serviceName": string; /** * ToPorts is a list of destination service L4 ports with protocol for * traffic to be redirected. If not specified, traffic for all the service * ports will be redirected. * When multiple ports are specified, the ports must be named. */ "toPorts"?: Array; } export declare class ServiceInfo extends Model implements IServiceInfo { "namespace": string; "serviceName": string; "toPorts"?: Array; constructor(data?: ModelData); } export type { IServiceInfo as IComGithubCiliumCiliumPkgK8sApisCiliumIoV2ServiceInfo, ServiceInfo as ComGithubCiliumCiliumPkgK8sApisCiliumIoV2ServiceInfo };