rolloutblock

package
v0.10.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	StatementSeparator = ","
)

Variables

This section is empty.

Functions

func ApplicationOverrides added in v0.10.5

func ApplicationOverrides(applicationOverrides, releaseOverrides string) string

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) AddMultiple added in v0.10.5

func (o ObjectNameList) AddMultiple(o2 ObjectNameList)

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