controllers

package
v0.0.0-...-1edc9ed Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Defaults for ACM-2.13 Operator deploy
	DefaultCatalogSource          = "redhat-operators"
	DefaultCatalogSourceNamespace = "openshift-marketplace"
	DefaultChannel                = "stable-0.12" // aligning ACM-2.13 with stable-0.12
	DefaultStartingCSV            = ""            // By default no starting CSV - will use the latest in the channel
	DefaultInstallPlanApproval    = "Automatic"

	// Defaults for ACM-2.13 helm-based deploy
	DefaultHelmChartKey         = DefaultChannel // named the same as our operator channel
	DefaultHelmChartName        = "volsync"
	DefaultHelmInstallNamespace = "volsync-system"
)

Change these values to suit your operator

View Source
const (
	// Label on ManagedCluster - if this label is set to value "true" on a ManagedCluster resource on the hub then
	// the addon controller will automatically create a ManagedClusterAddOn for the managed cluster and thus
	// trigger the deployment of the volsync operator on that managed cluster
	ManagedClusterInstallVolSyncLabel      = "addons.open-cluster-management.io/volsync"
	ManagedClusterInstallVolSyncLabelValue = "true"
)
View Source
const (
	// Annotations on the ManagedClusterAddOn for overriding operator settings (in the operator Subscription)
	AnnotationChannelOverride                = "operator-subscription-channel"
	AnnotationInstallPlanApprovalOverride    = "operator-subscription-installPlanApproval"
	AnnotationCatalogSourceOverride          = "operator-subscription-source"
	AnnotationCatalogSourceNamespaceOverride = "operator-subscription-sourceNamespace"
	AnnotationStartingCSVOverride            = "operator-subscription-startingCSV"
)
View Source
const (
	AnnotationVolSyncAddonDeployTypeOverride = "volsync-addon-deploy-type"
	//AnnotationVolSyncAddonDeployTypeOverrideHelmValue = "helm"
	AnnotationVolSyncAddonDeployTypeOverrideOLMValue = "olm"

	AnnotationHelmChartKey = "helm-chart-key"

	// This is the name of the pull secret that is copied to the namespace (volsync-system) on the managed
	// cluster.  This will allow pulls to the redhat registry.
	// (Other addons get this copied to open-cluster-management-agent-addon namespace on the mgd cluster)
	// Note this secret is automatically copied to volsync-system via putting the
	// label "addon.open-cluster-management.io/namespace":"true" on the volsync-system ns
	RHRegistryPullSecretName = "open-cluster-management-image-pull-credentials"
)

Variables

This section is empty.

Functions

func StartControllers

func StartControllers(ctx context.Context, config *rest.Config) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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