key

package
v2.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AppStatusDeployed = "deployed"

	// ReconcileDeprecatedReleaseAnnotation makes a Release to never be skipped, even though is deprecated or not used.
	ReconcileDeprecatedReleaseAnnotation = "release-operator.giantswarm.io/reconcile-deprecated"

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

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

	ValueServiceTypeManaged = "managed"
)
View Source
const (
	ProviderOperatorAWS   = "aws-operator"
	ProviderOperatorAzure = "azure-operator"
	ProviderOperatorKVM   = "kvm-operator"
)

Variables

This section is empty.

Functions

func BuildAppName

func BuildAppName(component releasev1alpha1.ReleaseSpecComponent) string

func BuildConfigName added in v2.2.0

func BuildConfigName(component releasev1alpha1.ReleaseSpecComponent) string

func ComponentAppCreated added in v2.2.0

func ComponentAppCreated(component releasev1alpha1.ReleaseSpecComponent, apps []applicationv1alpha1.App) bool

func ComponentAppDeployed added in v2.2.0

func ComponentAppDeployed(component releasev1alpha1.ReleaseSpecComponent, apps []applicationv1alpha1.App) bool

func ComponentConfigCreated added in v2.2.0

func ComponentConfigCreated(component releasev1alpha1.ReleaseSpecComponent, configs []corev1alpha1.Config) bool

func ConfigReferenced added in v2.2.0

func ConfigReferenced(config corev1alpha1.Config, components map[string]releasev1alpha1.ReleaseSpecComponent) bool

func ConstructConfig added in v2.2.0

func ConstructConfig(component releasev1alpha1.ReleaseSpecComponent) corev1alpha1.Config

func ExcludeDeletedRelease added in v2.2.0

func ExcludeDeletedRelease(releases releasev1alpha1.ReleaseList) releasev1alpha1.ReleaseList

func ExcludeUnusedDeprecatedReleases added in v2.2.0

func ExcludeUnusedDeprecatedReleases(releases releasev1alpha1.ReleaseList) releasev1alpha1.ReleaseList

func ExtractComponents

ExtractComponents extracts the components that this operator is responsible for.

func FilterComponents

FilterComponents filters the components that this operator is responsible for.

func GetAppConfig added in v2.2.0

func GetAppConfig(app applicationv1alpha1.App, configs corev1alpha1.ConfigList) (
	appConfig corev1alpha1.ConfigStatusConfig)

func GetProviderOperators

func GetProviderOperators() []string

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 IsSameConfig added in v2.2.0

func IsSameConfig(component releasev1alpha1.ReleaseSpecComponent, config corev1alpha1.Config) bool

func IsWrongTypeError

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

func ToReleaseCR

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

ToReleaseCR converts v into a Release CR.

Types

This section is empty.

Jump to

Keyboard shortcuts

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