bluegreen

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParser

func NewParser() parser.IngressAnnotation

NewParser creates a new blue/green annotation parser

Types

type Config

type Config struct {
	DeployWeight []DeployWeight
	Mode         string
}

Config is the blue/green deployment configuration

func (*Config) Equal

func (b1 *Config) Equal(b2 *Config) bool

Equal tests equality between two Config objects

type DeployWeight

type DeployWeight struct {
	LabelName   string
	LabelValue  string
	PodWeight   int
	PodCount    int
	GroupWeight int
}

DeployWeight has one label name/value pair and it's weight

func (*DeployWeight) Equal

func (dw1 *DeployWeight) Equal(dw2 *DeployWeight) bool

Equal tests equality between two DeployWeight objects

Jump to

Keyboard shortcuts

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