Documentation ¶
Index ¶
- Constants
- func AppAndVersion(service *v1.Service) (string, string)
- func AutoscaleEnable(service *v1.Service) bool
- func CalcWeightPercentage(weight, totalWeight int) int
- func GenerateWeightAndRolloutConfig(svc *riov1.Service, svcs []*riov1.Service, targetPercentage int, ...) (int, *riov1.RolloutConfig, error)
- func IsRepo(image string) bool
- func RootContainerName(service *v1.Service) string
- func ToNamedContainers(service *v1.Service) (result []v1.NamedContainer)
Constants ¶
View Source
const ( DefaultInterval = 4 PromoteWeight = 10000 DefaultRolloutDuration = 60 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func AutoscaleEnable ¶ added in v0.6.0
func CalcWeightPercentage ¶ added in v0.7.0
Get curr weight as percentage, rounded to nearest percent
func GenerateWeightAndRolloutConfig ¶ added in v0.7.0
func RootContainerName ¶ added in v0.6.0
func ToNamedContainers ¶ added in v0.6.0
func ToNamedContainers(service *v1.Service) (result []v1.NamedContainer)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.