UNPKG

@kubernetes-models/argo-rollouts

Version:
27 lines (26 loc) 1.38 kB
import { IComGithubArgoprojArgoRolloutsPkgApisRolloutsV1alpha1RouteMatch } from "./RouteMatch.js"; import { ModelData, Model } from "@kubernetes-models/base"; export interface ISetMirrorRoute { /** * Match Contains a list of rules that if mated will mirror the traffic to the services */ "match"?: Array<IComGithubArgoprojArgoRolloutsPkgApisRolloutsV1alpha1RouteMatch>; /** * Name this is the name of the route to use for the mirroring of traffic this also needs * to be included in the `spec.strategy.canary.trafficRouting.managedRoutes` field */ "name": string; /** * Services The list of services to mirror the traffic to if the method, path, headers match * Service string `json:"service" protobuf:"bytes,3,opt,name=service"` * Percentage What percent of the traffic that matched the rules should be mirrored */ "percentage"?: number; } export declare class SetMirrorRoute extends Model<ISetMirrorRoute> implements ISetMirrorRoute { "match"?: Array<IComGithubArgoprojArgoRolloutsPkgApisRolloutsV1alpha1RouteMatch>; "name": string; "percentage"?: number; constructor(data?: ModelData<ISetMirrorRoute>); } export type { ISetMirrorRoute as IComGithubArgoprojArgoRolloutsPkgApisRolloutsV1alpha1SetMirrorRoute, SetMirrorRoute as ComGithubArgoprojArgoRolloutsPkgApisRolloutsV1alpha1SetMirrorRoute };