Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultInterval = 2
Variables ¶
This section is empty.
Functions ¶
func GenerateWeightAndRolloutConfig ¶ added in v0.6.0
func GenerateWeightAndRolloutConfig(ctx *clicontext.CLIContext, obj types.Resource, targetPercentage int, duration time.Duration, pause bool) (int, *riov1.RolloutConfig, error)
func PromoteService ¶ added in v0.6.0
func PromoteService(ctx *clicontext.CLIContext, resource types.Resource, rolloutConfig *riov1.RolloutConfig, promoteWeight int) error
Types ¶
type Weight ¶
type Weight struct { Duration string `desc:"How long the rollout should take" 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.