controllers

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 18 Imported by: 0 modules, 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

This section is empty.

Variables

View Source
var ErrEmptyOptionValue = errors.New("empty option value")

Functions

This section is empty.

Types

type CSVLister added in v0.2.3

type CSVLister interface {
	ListCSVs(ctx context.Context, opts ...ListCSVsOption) ([]opsv1alpha1.ClusterServiceVersion, error)
}

type CSVListerImpl added in v0.2.3

type CSVListerImpl struct {
	// contains filtered or unexported fields
}

func NewCSVListerImpl added in v0.2.3

func NewCSVListerImpl(client client.Client) *CSVListerImpl

func (*CSVListerImpl) ListCSVs added in v0.2.3

type ConfigMapUninstallSignaler added in v0.2.3

type ConfigMapUninstallSignaler struct {
	// contains filtered or unexported fields
}

func NewConfigMapUninstallSignaler added in v0.2.3

func NewConfigMapUninstallSignaler(client client.Client, opts ...ConfigMapUninstallSignalerOption) (*ConfigMapUninstallSignaler, error)

func (*ConfigMapUninstallSignaler) SignalUninstall added in v0.2.3

func (s *ConfigMapUninstallSignaler) SignalUninstall(ctx context.Context) bool

type ConfigMapUninstallSignalerConfig added in v0.2.3

type ConfigMapUninstallSignalerConfig struct {
	AddonNamespace string
	OperatorName   string
	DeleteLabel    string
}

func (*ConfigMapUninstallSignalerConfig) Option added in v0.2.3

func (*ConfigMapUninstallSignalerConfig) Validate added in v0.2.3

type ConfigMapUninstallSignalerOption added in v0.2.3

type ConfigMapUninstallSignalerOption interface {
	ConfigureConfigMapUninstallSignaler(*ConfigMapUninstallSignalerConfig)
}

type ListCSVsConfig added in v0.2.3

type ListCSVsConfig struct {
	Namespace string
	Prefix    string
}

func (*ListCSVsConfig) Option added in v0.2.3

func (c *ListCSVsConfig) Option(opts ...ListCSVsOption)

type ListCSVsOption added in v0.2.3

type ListCSVsOption interface {
	ConfigureListCSVs(*ListCSVsConfig)
}

type PhaseSendDummyMetrics added in v0.2.3

type PhaseSendDummyMetrics struct {
	// contains filtered or unexported fields
}

func NewPhaseSendDummyMetrics added in v0.2.3

func NewPhaseSendDummyMetrics(sampler ResponseSampler, opts ...PhaseSendDummyMetricsOption) *PhaseSendDummyMetrics

func (*PhaseSendDummyMetrics) Execute added in v0.2.3

type PhaseSendDummyMetricsConfig added in v0.2.3

type PhaseSendDummyMetricsConfig struct {
	SampleURLs []string
}

func (*PhaseSendDummyMetricsConfig) Option added in v0.2.3

type PhaseSendDummyMetricsOption added in v0.2.3

type PhaseSendDummyMetricsOption interface {
	ConfigurePhaseSendDummyMetrics(*PhaseSendDummyMetricsConfig)
}

type PhaseSimulateReconciliation added in v0.2.3

type PhaseSimulateReconciliation struct {
	// contains filtered or unexported fields
}

func NewPhaseSimulateReconciliation added in v0.2.3

func NewPhaseSimulateReconciliation(opts ...PhaseSimulateReconciliationOption) *PhaseSimulateReconciliation

func (*PhaseSimulateReconciliation) Execute added in v0.2.3

type PhaseSimulateReconciliationConfig added in v0.2.3

type PhaseSimulateReconciliationConfig struct {
	Log logr.Logger
}

func (*PhaseSimulateReconciliationConfig) Default added in v0.2.3

func (c *PhaseSimulateReconciliationConfig) Default()

func (*PhaseSimulateReconciliationConfig) Option added in v0.2.3

type PhaseSimulateReconciliationOption added in v0.2.3

type PhaseSimulateReconciliationOption interface {
	ConfigurePhaseSimulateReconciliation(*PhaseSimulateReconciliationConfig)
}

type PhaseUninstall added in v0.2.3

type PhaseUninstall struct {
	// contains filtered or unexported fields
}

func NewPhaseUninstall added in v0.2.3

func NewPhaseUninstall(signaler UninstallSignaler, uninstaller Uninstaller, opts ...PhaseUninstallOption) *PhaseUninstall

func (*PhaseUninstall) Execute added in v0.2.3

func (p *PhaseUninstall) Execute(ctx context.Context, req phase.Request) phase.Result

type PhaseUninstallConfig added in v0.2.3

type PhaseUninstallConfig struct {
	Log logr.Logger

	AddonNamespace string
	OperatorName   string
}

func (*PhaseUninstallConfig) Default added in v0.2.3

func (c *PhaseUninstallConfig) Default()

func (*PhaseUninstallConfig) Option added in v0.2.3

func (c *PhaseUninstallConfig) Option(opts ...PhaseUninstallOption)

type PhaseUninstallOption added in v0.2.3

type PhaseUninstallOption interface {
	ConfigurePhaseUninstall(*PhaseUninstallConfig)
}

type ReferenceAddonReconciler

type ReferenceAddonReconciler struct {
	// contains filtered or unexported fields
}

func NewReferenceAddonReconciler added in v0.2.3

func NewReferenceAddonReconciler(client client.Client, opts ...ReferenceAddonReconcilerOption) (*ReferenceAddonReconciler, error)

func (*ReferenceAddonReconciler) Reconcile

func (*ReferenceAddonReconciler) SetupWithManager

func (r *ReferenceAddonReconciler) SetupWithManager(mgr ctrl.Manager) error

type ReferenceAddonReconcilerConfig added in v0.2.3

type ReferenceAddonReconcilerConfig struct {
	Log logr.Logger

	AddonNamespace string
	OperatorName   string
	DeleteLabel    string
}

func (*ReferenceAddonReconcilerConfig) Default added in v0.2.3

func (c *ReferenceAddonReconcilerConfig) Default()

func (*ReferenceAddonReconcilerConfig) Option added in v0.2.3

type ReferenceAddonReconcilerOption added in v0.2.3

type ReferenceAddonReconcilerOption interface {
	ConfigureReferenceAddonReconciler(*ReferenceAddonReconcilerConfig)
}

type ResponseSampler added in v0.2.3

type ResponseSampler interface {
	RequestSampleResponseData(urls ...string)
}

type UninstallSignaler added in v0.2.3

type UninstallSignaler interface {
	SignalUninstall(ctx context.Context) bool
}

type Uninstaller added in v0.2.3

type Uninstaller interface {
	Uninstall(ctx context.Context, namespace, operatorName string) error
}

type UninstallerImpl added in v0.2.3

type UninstallerImpl struct {
	// contains filtered or unexported fields
}

func NewUninstallerImpl added in v0.2.3

func NewUninstallerImpl(client client.Client, lister CSVLister, opts ...UninstallerImplOption) *UninstallerImpl

func (UninstallerImpl) Uninstall added in v0.2.3

func (u UninstallerImpl) Uninstall(ctx context.Context, namespace, operatorName string) error

type UninstallerImplConfig added in v0.2.3

type UninstallerImplConfig struct {
	Log logr.Logger
}

func (*UninstallerImplConfig) Default added in v0.2.3

func (c *UninstallerImplConfig) Default()

func (*UninstallerImplConfig) Option added in v0.2.3

func (c *UninstallerImplConfig) Option(opts ...UninstallerImplOption)

type UninstallerImplOption added in v0.2.3

type UninstallerImplOption interface {
	ConfigureUninstallerImpl(*UninstallerImplConfig)
}

type WithAddonNamespace added in v0.2.3

type WithAddonNamespace string

func (WithAddonNamespace) ConfigureConfigMapUninstallSignaler added in v0.2.3

func (w WithAddonNamespace) ConfigureConfigMapUninstallSignaler(c *ConfigMapUninstallSignalerConfig)

func (WithAddonNamespace) ConfigurePhaseUninstall added in v0.2.3

func (w WithAddonNamespace) ConfigurePhaseUninstall(c *PhaseUninstallConfig)

func (WithAddonNamespace) ConfigureReferenceAddonReconciler added in v0.2.3

func (w WithAddonNamespace) ConfigureReferenceAddonReconciler(c *ReferenceAddonReconcilerConfig)

type WithDeleteLabel added in v0.2.3

type WithDeleteLabel string

func (WithDeleteLabel) ConfigureConfigMapUninstallSignaler added in v0.2.3

func (w WithDeleteLabel) ConfigureConfigMapUninstallSignaler(c *ConfigMapUninstallSignalerConfig)

func (WithDeleteLabel) ConfigureReferenceAddonReconciler added in v0.2.3

func (w WithDeleteLabel) ConfigureReferenceAddonReconciler(c *ReferenceAddonReconcilerConfig)

type WithLog added in v0.2.3

type WithLog struct{ Log logr.Logger }

func (WithLog) ConfigurePhaseSimulateReconciliation added in v0.2.3

func (w WithLog) ConfigurePhaseSimulateReconciliation(c *PhaseSimulateReconciliationConfig)

func (WithLog) ConfigurePhaseUninstall added in v0.2.3

func (w WithLog) ConfigurePhaseUninstall(c *PhaseUninstallConfig)

func (WithLog) ConfigureReferenceAddonReconciler added in v0.2.3

func (w WithLog) ConfigureReferenceAddonReconciler(c *ReferenceAddonReconcilerConfig)

func (WithLog) ConfigureUninstallerImpl added in v0.2.3

func (w WithLog) ConfigureUninstallerImpl(c *UninstallerImplConfig)

type WithNamespace added in v0.2.3

type WithNamespace string

func (WithNamespace) ConfigureListCSVs added in v0.2.3

func (w WithNamespace) ConfigureListCSVs(c *ListCSVsConfig)

type WithOperatorName added in v0.2.3

type WithOperatorName string

func (WithOperatorName) ConfigureConfigMapUninstallSignaler added in v0.2.3

func (w WithOperatorName) ConfigureConfigMapUninstallSignaler(c *ConfigMapUninstallSignalerConfig)

func (WithOperatorName) ConfigurePhaseUninstall added in v0.2.3

func (w WithOperatorName) ConfigurePhaseUninstall(c *PhaseUninstallConfig)

func (WithOperatorName) ConfigureReferenceAddonReconciler added in v0.2.3

func (w WithOperatorName) ConfigureReferenceAddonReconciler(c *ReferenceAddonReconcilerConfig)

type WithPrefix added in v0.2.3

type WithPrefix string

func (WithPrefix) ConfigureListCSVs added in v0.2.3

func (w WithPrefix) ConfigureListCSVs(c *ListCSVsConfig)

type WithSampleURLs added in v0.2.3

type WithSampleURLs []string

func (WithSampleURLs) ConfigurePhaseSendDummyMetrics added in v0.2.3

func (w WithSampleURLs) ConfigurePhaseSendDummyMetrics(c *PhaseSendDummyMetricsConfig)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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