Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PromoteService ¶ added in v0.6.0
func PromoteService(ctx *clicontext.CLIContext, resource types.Resource, rolloutConfig *riov1.RolloutConfig, promoteWeight int) error
PromoteService sets one svc to weight 100% and all others to 0%. If the svc doesn't need updating it is skipped to avoid conflicts.
Types ¶
type Weight ¶
type Weight struct { Duration string `desc:"How long the rollout should take. An approximation, actual time may fluctuate" default:"0s"` Pause bool `desc:"Whether to pause rollout or continue it. Default to false" default:"false"` }
func (*Weight) Run ¶
func (w *Weight) Run(ctx *clicontext.CLIContext) error
Click to show internal directories.
Click to hide internal directories.