key

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 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

func BuildConfigName(component releasev1alpha1.ReleaseSpecComponent) string

func ComponentAppCreated

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

func ComponentAppDeployed

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

func ComponentConfigCreated

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

func ConfigReferenced

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

func ExcludeUnusedDeprecatedReleases

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

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

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