@kubernetes-models/argo-rollouts
Version:
29 lines (28 loc) • 1.07 kB
TypeScript
import { ModelData, Model } from "@kubernetes-models/base";
/**
* SetCanaryScale defines how to scale the newRS without changing traffic weight
*/
export interface ISetCanaryScale {
/**
* MatchTrafficWeight cancels out previously set Replicas or Weight, effectively activating SetWeight
*/
"matchTrafficWeight"?: boolean;
/**
* Replicas sets the number of replicas the newRS should have
*/
"replicas"?: number;
/**
* Weight sets the percentage of replicas the newRS should have
*/
"weight"?: number;
}
/**
* SetCanaryScale defines how to scale the newRS without changing traffic weight
*/
export declare class SetCanaryScale extends Model<ISetCanaryScale> implements ISetCanaryScale {
"matchTrafficWeight"?: boolean;
"replicas"?: number;
"weight"?: number;
constructor(data?: ModelData<ISetCanaryScale>);
}
export type { ISetCanaryScale as IComGithubArgoprojArgoRolloutsPkgApisRolloutsV1alpha1SetCanaryScale, SetCanaryScale as ComGithubArgoprojArgoRolloutsPkgApisRolloutsV1alpha1SetCanaryScale };