Documentation ¶
Index ¶
- Constants
- func AppReferenced(app applicationv1alpha1.App, ...) bool
- func BuildAppName(component releasev1alpha1.ReleaseSpecComponent) string
- func BuildConfigName(component releasev1alpha1.ReleaseSpecComponent) string
- func ComponentAppCreated(component releasev1alpha1.ReleaseSpecComponent, apps []applicationv1alpha1.App) bool
- func ComponentAppDeployed(component releasev1alpha1.ReleaseSpecComponent, apps []applicationv1alpha1.App) bool
- func ComponentConfigCreated(component releasev1alpha1.ReleaseSpecComponent, configs []corev1alpha1.Config) bool
- func ConfigReferenced(config corev1alpha1.Config, ...) bool
- func ConstructApp(component releasev1alpha1.ReleaseSpecComponent) applicationv1alpha1.App
- func ConstructConfig(component releasev1alpha1.ReleaseSpecComponent) corev1alpha1.Config
- func ExcludeDeletedRelease(releases releasev1alpha1.ReleaseList) releasev1alpha1.ReleaseList
- func ExcludeUnusedDeprecatedReleases(releases releasev1alpha1.ReleaseList) releasev1alpha1.ReleaseList
- func ExtractComponents(releases releasev1alpha1.ReleaseList) map[string]releasev1alpha1.ReleaseSpecComponent
- func FilterComponents(comps []releasev1alpha1.ReleaseSpecComponent) []releasev1alpha1.ReleaseSpecComponent
- func GetAppConfig(app applicationv1alpha1.App, configs corev1alpha1.ConfigList) (appConfig corev1alpha1.ConfigStatusConfig)
- func GetComponentRef(comp releasev1alpha1.ReleaseSpecComponent) string
- func GetProviderOperators() []string
- func IsEmptyValueError(err error) bool
- func IsInvalidConfig(err error) bool
- func IsInvalidReleaseName(err error) bool
- func IsSameApp(component releasev1alpha1.ReleaseSpecComponent, app applicationv1alpha1.App) bool
- func IsSameConfig(component releasev1alpha1.ReleaseSpecComponent, config corev1alpha1.Config) bool
- func IsWrongTypeError(err error) bool
- func ToReleaseCR(v interface{}) (*releasev1alpha1.Release, error)
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 AppReferenced ¶
func AppReferenced(app applicationv1alpha1.App, components map[string]releasev1alpha1.ReleaseSpecComponent) bool
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 ConstructApp ¶
func ConstructApp(component releasev1alpha1.ReleaseSpecComponent) applicationv1alpha1.App
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 ¶
func ExtractComponents(releases releasev1alpha1.ReleaseList) map[string]releasev1alpha1.ReleaseSpecComponent
ExtractComponents extracts the components that this operator is responsible for.
func FilterComponents ¶
func FilterComponents(comps []releasev1alpha1.ReleaseSpecComponent) []releasev1alpha1.ReleaseSpecComponent
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 GetComponentRef ¶
func GetComponentRef(comp releasev1alpha1.ReleaseSpecComponent) string
func GetProviderOperators ¶
func GetProviderOperators() []string
func IsEmptyValueError ¶
IsEmptyValueError asserts emptyValueError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsInvalidReleaseName ¶
IsInvalidReleaseName asserts invalidReleaseNameError.
func IsSameApp ¶
func IsSameApp(component releasev1alpha1.ReleaseSpecComponent, app applicationv1alpha1.App) bool
func IsSameConfig ¶ added in v2.2.0
func IsSameConfig(component releasev1alpha1.ReleaseSpecComponent, config corev1alpha1.Config) bool
func IsWrongTypeError ¶
IsWrongTypeError asserts wrongTypeError.
func ToReleaseCR ¶
func ToReleaseCR(v interface{}) (*releasev1alpha1.Release, error)
ToReleaseCR converts v into a Release CR.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.