reconcilers

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InstallNamespace namespace for installation
	InstallNamespace = "openshift-operators"
	// CatalogNamespace namespace for catalog sources
	CatalogNamespace = "openshift-marketplace"

	// DBaaSQuickStartVersion version for the quick start guide
	DBaaSQuickStartVersion = "dbaas-quick-starts:0.5.0"

	//ObservabilityName platform name for observability
	ObservabilityName = "observability"
	//ObservabilityDisplayName constants for observability
	ObservabilityDisplayName = "Observability Operator"
)

Variables

View Source
var InstallationPlatforms = map[dbaasv1beta1.PlatformName]dbaasv1beta1.PlatformConfig{
	dbaasv1beta1.DBaaSDynamicPluginInstallation: {
		Name:        dbaasDynamicPluginName,
		CSV:         fetchEnvValue(dbaasDynamicPluginVersion),
		Image:       fetchEnvValue(dbaasDynamicPluginImg),
		DisplayName: dbaasDynamicPluginDisplayName,
		Type:        dbaasv1beta1.TypeConsolePlugin,
	},
	dbaasv1beta1.CrunchyBridgeInstallation: {
		Name:           crunchyBridgeName,
		CSV:            fetchEnvValue(crunchyBridgeCSV),
		DeploymentName: crunchyBridgeDeployment,
		Image:          fetchEnvValue(crunchyBridgeCatalogImg),
		PackageName:    crunchyBridgePkg,
		Channel:        crunchyBridgeChannel,
		DisplayName:    crunchyBridgeDisplayName,
		Type:           dbaasv1beta1.TypeOperator,
	},
	dbaasv1beta1.CockroachDBInstallation: {
		Name:           cockroachDBName,
		CSV:            fetchEnvValue(cockroachDBCSV),
		DeploymentName: cockroachDBDeployment,
		Image:          fetchEnvValue(cockroachDBCatalogImg),
		PackageName:    cockroachDBPkg,
		Channel:        cockroachDBChannel,
		DisplayName:    cockroachDBDisplayName,
		Type:           dbaasv1beta1.TypeOperator,
	},
	dbaasv1beta1.DBaaSQuickStartInstallation: {
		Type: dbaasv1beta1.TypeQuickStart,
		CSV:  DBaaSQuickStartVersion,
	},
	dbaasv1beta1.RDSProviderInstallation: {
		Name:           rdsProviderName,
		CSV:            fetchEnvValue(rdsProviderCSV),
		DeploymentName: rdsProviderDeployment,
		Image:          fetchEnvValue(rdsProviderCatalogImg),
		PackageName:    rdsProviderPkg,
		Channel:        rdsProviderChannel,
		DisplayName:    rdsProviderDisplayName,
		Type:           dbaasv1beta1.TypeOperator,
	},
	dbaasv1beta1.ObservabilityInstallation: {
		Name:        ObservabilityName,
		DisplayName: ObservabilityDisplayName,
		Type:        dbaasv1beta1.TypeObservability,
	},
}

InstallationPlatforms return the list of platforms

Functions

func CheckOwnerReferenceSet added in v0.1.4

func CheckOwnerReferenceSet(cr *v1beta1.DBaaSPlatform, csv *v1alpha1.ClusterServiceVersion, scheme *runtime.Scheme) (bool, error)

CheckOwnerReferenceSet check if the owner reference has been set for DBaaSPlatform CR

func GetCatalogSource added in v0.1.4

func GetCatalogSource(namespace string, name string) *v1alpha1.CatalogSource

GetCatalogSource returns a CatalogSource object

func GetClusterServiceVersion added in v0.1.4

func GetClusterServiceVersion(namespace string, name string) *v1alpha1.ClusterServiceVersion

GetClusterServiceVersion returns a CSV object

func GetDBaaSOperatorCSV added in v0.1.4

func GetDBaaSOperatorCSV(ctx context.Context, namespace string, name string, serverClient k8sclient.Client) (*v1alpha1.ClusterServiceVersion, error)

GetDBaaSOperatorCSV returns the CSV for the DBaaS Operator

func GetObservabilityConfig added in v0.4.0

func GetObservabilityConfig() dbaasv1beta1.ObservabilityConfig

GetObservabilityConfig return observatorium configuration

func GetOperatorGroup added in v0.1.4

func GetOperatorGroup(namespace string, name string) *coreosv1.OperatorGroup

GetOperatorGroup returns an OperatorGroup object

func GetSubscription added in v0.1.4

func GetSubscription(namespace string, name string) *v1alpha1.Subscription

GetSubscription returns a Subscription object

Types

type PlatformReconciler

type PlatformReconciler interface {
	Reconcile(ctx context.Context, cr *v1beta1.DBaaSPlatform) (v1beta1.PlatformInstlnStatus, error)
	Cleanup(ctx context.Context, cr *v1beta1.DBaaSPlatform) (v1beta1.PlatformInstlnStatus, error)
}

PlatformReconciler interface for platform reconcilers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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