strategy

package
v0.2.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentName = "strategy-controller"
)

Variables

This section is empty.

Functions

func IsNotWorkingOnStrategy

func IsNotWorkingOnStrategy(err error) bool

func NewNotWorkingOnStrategyError

func NewNotWorkingOnStrategyError(contenderReleaseKey string) error

Types

type CapacityTargetOutdatedResult

type CapacityTargetOutdatedResult struct {
	Name    string
	NewSpec *shipper.CapacityTargetSpec
}

func (*CapacityTargetOutdatedResult) PatchSpec

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(
	shipperClient shipperclientset.Interface,
	informerFactory informers.SharedInformerFactory,
	dynamicClientPool dynamic.ClientPool,
	recorder record.EventRecorder,
) *Controller

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh <-chan struct{})

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

type ExecutorResult

type ExecutorResult interface {
	PatchSpec() (string, schema.GroupVersionKind, []byte)
}

type NotWorkingOnStrategyError

type NotWorkingOnStrategyError error

type ReleaseStrategyStateTransition

type ReleaseStrategyStateTransition struct {
	State    string
	Previous shipper.StrategyState
	New      shipper.StrategyState
}

type ReleaseUpdateResult

type ReleaseUpdateResult struct {
	Name      string
	NewStatus *shipper.ReleaseStatus
}

func (*ReleaseUpdateResult) PatchSpec

func (r *ReleaseUpdateResult) PatchSpec() (string, schema.GroupVersionKind, []byte)

type RetrievingCapacityTargetForReleaseError

type RetrievingCapacityTargetForReleaseError error

func NewRetrievingCapacityTargetForReleaseError

func NewRetrievingCapacityTargetForReleaseError(releasekey string, err error) RetrievingCapacityTargetForReleaseError

type RetrievingInstallationTargetForReleaseError

type RetrievingInstallationTargetForReleaseError error

func NewRetrievingInstallationTargetForReleaseError

func NewRetrievingInstallationTargetForReleaseError(releaseKey string, err error) RetrievingInstallationTargetForReleaseError

type RetrievingTrafficTargetForReleaseError

type RetrievingTrafficTargetForReleaseError error

func NewRetrievingTrafficTargetForReleaseError

func NewRetrievingTrafficTargetForReleaseError(releaseKey string, err error) RetrievingTrafficTargetForReleaseError

type TrafficTargetOutdatedResult

type TrafficTargetOutdatedResult struct {
	Name    string
	NewSpec *shipper.TrafficTargetSpec
}

func (*TrafficTargetOutdatedResult) PatchSpec

Jump to

Keyboard shortcuts

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