controllers

package
v0.0.0-...-5a1c00e Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 39 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (

	// Defaults for ACM-5.0 helm-based deploy
	DefaultHelmChartKey         = "stable-0.17" // aligning ACM-5.0 with stable-0.17
	DefaultHelmChartName        = "volsync"
	DefaultHelmInstallNamespace = "volsync-system"

	DefaultEmbeddedChartsDir = "/helmcharts"
)

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"
	AnnotationVolSyncAddonDeployTypeOverrideDisabledValue = "disabled"

	AnnotationHelmChartKey = "helm-chart-key"

	EnvVarVolSyncImageName = "OPERAND_IMAGE_VOLSYNC"

	// 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 GetVolSyncDefaultImagesFromMCH

func GetVolSyncDefaultImagesFromMCH(ctx context.Context,
	kubeClient client.Client, mchNamespace string) (map[string]string, error)

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