services

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: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DefaultInterval        = 4
	PromoteWeight          = 10000
	DefaultRolloutDuration = 60 * time.Second
)

Variables

This section is empty.

Functions

func AppAndVersion

func AppAndVersion(service *v1.Service) (string, string)

func AutoscaleEnable added in v0.6.0

func AutoscaleEnable(service *v1.Service) bool

func CalcWeightPercentage added in v0.7.0

func CalcWeightPercentage(weight, totalWeight int) int

Get curr weight as percentage, rounded to nearest percent

func GenerateWeightAndRolloutConfig added in v0.7.0

func GenerateWeightAndRolloutConfig(svc *riov1.Service, svcs []*riov1.Service, targetPercentage int, duration time.Duration, pause bool) (int, *riov1.RolloutConfig, error)

func IsRepo added in v0.6.0

func IsRepo(image string) bool

func RootContainerName added in v0.6.0

func RootContainerName(service *v1.Service) string

func ToNamedContainers added in v0.6.0

func ToNamedContainers(service *v1.Service) (result []v1.NamedContainer)

Types

This section is empty.

Jump to

Keyboard shortcuts

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