kudo

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OperatorLabel is k8s label key for identifying operator
	OperatorLabel = "kudo.dev/operator"
	// OperatorVersionAnnotation is k8s label key for operator version
	OperatorVersionAnnotation = "kudo.dev/operator-version"
	// InstanceLabel is k8s label key for KUDO instance name
	InstanceLabel = "kudo.dev/instance"
	// HeritageLabel is k8s label key for heritage
	HeritageLabel = "heritage" // this is not specific to KUDO

	// PlanAnnotation is k8s annotation key for plan name that created this object
	PlanAnnotation = "kudo.dev/plan"
	// PhaseAnnotation is k8s annotation key for phase that created this object
	PhaseAnnotation = "kudo.dev/phase"
	// StepAnnotation is k8s annotation key for step that created this object
	StepAnnotation = "kudo.dev/step"

	// PlanUIDAnnotation is a k8s annotation key for the last time a given plan was run on the referenced object
	PlanUIDAnnotation = "kudo.dev/last-plan-execution-uid"

	// DependenciesHash is used to trigger pod reloads if one of the dependencies of the resource is changed
	DependenciesHashAnnotation = "kudo.dev/dependencies-hash"

	// Used to ignore this resource in the calculation of the dependencies hash
	SkipHashCalculationAnnotation = "kudo.dev/skip-hash-calculation"

	// Last applied state for three way merges
	LastAppliedConfigAnnotation = "kudo.dev/last-applied-configuration"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SortableOperator added in v0.17.0

type SortableOperator interface {
	OperatorName() string
	OperatorVersion() string
	AppVersion() string
}

type SortableOperatorList added in v0.17.0

type SortableOperatorList []SortableOperator

func (SortableOperatorList) FilterByName added in v0.17.0

func (b SortableOperatorList) FilterByName(name string) SortableOperatorList

func (SortableOperatorList) FindFirstMatch added in v0.17.0

func (b SortableOperatorList) FindFirstMatch(name, operatorVersion, appVersion string) SortableOperator

func (SortableOperatorList) Len added in v0.17.0

func (b SortableOperatorList) Len() int

Len returns the number of entries This is needed to allow sorting.

func (SortableOperatorList) Less added in v0.17.0

func (b SortableOperatorList) Less(x, y int) bool

Less returns true if the version of entry a is less than the version of entry b. This is needed to allow sorting.

func (SortableOperatorList) Sort added in v0.17.0

func (b SortableOperatorList) Sort()

func (SortableOperatorList) Swap added in v0.17.0

func (b SortableOperatorList) Swap(i, j int)

Swap swaps the position of two items in the slice. This is needed to allow sorting.

Jump to

Keyboard shortcuts

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