weight

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL