multitrack

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 30 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFailWholeDeployProcessImmediately = errors.New("fail whole deploy process immediately")

Functions

func Multitrack

func Multitrack(kube kubernetes.Interface, specs MultitrackSpecs, opts MultitrackOptions) error

Types

type FailMode

type FailMode string
const (
	IgnoreAndContinueDeployProcess    FailMode = "IgnoreAndContinueDeployProcess"
	FailWholeDeployProcessImmediately FailMode = "FailWholeDeployProcessImmediately"
	HopeUntilEndOfDeployProcess       FailMode = "HopeUntilEndOfDeployProcess"
)

type MultitrackOptions

type MultitrackOptions struct {
	tracker.Options
	DynamicClient        dynamic.Interface
	DiscoveryClient      discovery.CachedDiscoveryInterface
	Mapper               meta.RESTMapper
	StatusProgressPeriod time.Duration
}

type MultitrackSpec

type MultitrackSpec struct {
	ResourceName string
	Namespace    string

	TrackTerminationMode    TrackTerminationMode
	FailMode                FailMode
	AllowFailuresCount      *int
	FailureThresholdSeconds *int

	IgnoreReadinessProbeFailsByContainerName map[string]time.Duration

	LogRegex                *regexp.Regexp
	LogRegexByContainerName map[string]*regexp.Regexp

	SkipLogs                  bool
	SkipLogsForContainers     []string
	ShowLogsOnlyForContainers []string

	ShowServiceMessages bool
}

type MultitrackSpecs

type MultitrackSpecs struct {
	Deployments  []MultitrackSpec
	StatefulSets []MultitrackSpec
	DaemonSets   []MultitrackSpec
	Jobs         []MultitrackSpec
	Canaries     []MultitrackSpec
	Generics     []*generic.Spec
}

type TrackTerminationMode

type TrackTerminationMode string
const (
	WaitUntilResourceReady TrackTerminationMode = "WaitUntilResourceReady"
	NonBlocking            TrackTerminationMode = "NonBlocking"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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