rolloutblock

package
v0.8.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatementSeparator = ","
)

Variables

This section is empty.

Functions

func GetAllBlocks added in v0.7.0

func GetAllBlocks(rolloutBlockLister shipperlisters.RolloutBlockLister, obj metav1.Object) (ObjectNameList, ObjectNameList, error)

func ValidateAnnotations added in v0.7.0

func ValidateAnnotations(existing, overrides ObjectNameList) error

func ValidateBlocks added in v0.7.0

func ValidateBlocks(existing, overrides ObjectNameList) error

Types

type ObjectNameList

type ObjectNameList map[string]struct{}

func NewObjectNameList

func NewObjectNameList(statement string) ObjectNameList

func NewObjectNameListFromRolloutBlocksList

func NewObjectNameListFromRolloutBlocksList(rbs []*shipper.RolloutBlock) ObjectNameList

func (ObjectNameList) Add

func (o ObjectNameList) Add(statement string)

func (ObjectNameList) Delete

func (o ObjectNameList) Delete(rm string)

func (ObjectNameList) Diff

func (ObjectNameList) Keys

func (o ObjectNameList) Keys() []string

func (ObjectNameList) String

func (o ObjectNameList) String() string

type RolloutBlockEvent

type RolloutBlockEvent struct {
	Type    string
	Reason  string
	Message string
}

func BlocksRollout

func BlocksRollout(rolloutBlockLister shipperlisters.RolloutBlockLister, obj metav1.Object) (bool, []RolloutBlockEvent, error)

BlocksRollout is used by application and release controllers to check if to block a rollout while updating relevant events

Jump to

Keyboard shortcuts

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