key

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AppCatalog is the name of the app catalog where releases and release
	// components are stored.
	AppCatalog = "control-plane"

	// Namespace is the namespace where App CRs are created.
	Namespace = "giantswarm"

	LabelAppOperatorVersion = "app-operator.giantswarm.io/version"
	LabelManagedBy          = "giantswarm.io/managed-by"
	LabelReleaseCyclePhase  = "release-operator.giantswarm.io/release-cycle-phase"
	LabelServiceType        = "giantswarm.io/service-type"

	ValueServiceTypeManaged = "managed"
)

Variables

This section is empty.

Functions

func IsDeleted

func IsDeleted(cr DeletionTimestampGetter) bool

func IsEmptyValueError

func IsEmptyValueError(err error) bool

IsEmptyValueError asserts emptyValueError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsInvalidReleaseName

func IsInvalidReleaseName(err error) bool

IsInvalidReleaseName asserts invalidReleaseNameError.

func IsWrongTypeError

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

func ReleaseVersion

func ReleaseVersion(releaseCR releasev1alpha1.Release) string

ReleaseVersion returns the version of the given release.

func SplitReleaseName

func SplitReleaseName(name string) (string, string, error)

SplitReleaseName splits a release name into provider and version. It returns provider, version, and error, in this order.

It expects name to be in the following format <provider>.<version> e.g. aws.v6.0.1

func ToAppCR

func ToAppCR(v interface{}) (*applicationv1alpha1.App, error)

ToAppCR converts v into an App CR.

func ToReleaseCR

func ToReleaseCR(v interface{}) (*releasev1alpha1.Release, error)

ToReleaseCR converts v into a Release CR.

func ToReleaseCycleCR

func ToReleaseCycleCR(v interface{}) (*releasev1alpha1.ReleaseCycle, error)

ToReleaseCycleCR converts v into a ReleaseCycle CR.

Types

type DeletionTimestampGetter

type DeletionTimestampGetter interface {
	GetDeletionTimestamp() *metav1.Time
}

Jump to

Keyboard shortcuts

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