controllers

package
v0.0.0-...-063e9e6 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 16 Imported by: ? 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

This section is empty.

Functions

This section is empty.

Types

type InstallationConfig

type InstallationConfig struct {
	Channel3scale          string
	Channel3scaleAPIcast   string
	ChannelAMQBroker       string
	ChannelAMQInterconnect string
	ChannelAMQStreams      string
	ChannelAPIDesigner     string
	ChannelCamelK          string
	ChannelFuseConsole     string
	ChannelFuseOnline      string
	ChannelServiceRegistry string
}

InstallationConfig stores configuration required for the installation of the product operators

type InstallationPlan

type InstallationPlan struct {
	Channel       string
	ConditionType string
	Enabled       bool
	Mode          string
	Name          string
	Namespace     string
	PackageName   string
	StatusMessage string
}

InstallationPlan defines the information required for the installation of an operator via OLM

func CreateInstallationPlans

func CreateInstallationPlans(installation *integrationv1.Installation, config *InstallationConfig) []*InstallationPlan

CreateInstallationPlans returns installation plans updated with values from the Installation CR

func (*InstallationPlan) IsClusterMode

func (ip *InstallationPlan) IsClusterMode() bool

IsClusterMode returns true when the installation mode is 'cluster'

func (*InstallationPlan) IsNamespaceMode

func (ip *InstallationPlan) IsNamespaceMode() bool

IsNamespaceMode returns true when the installation mode is 'namespace'

type InstallationReconciler

type InstallationReconciler struct {
	client.Client
	Scheme    *runtime.Scheme
	APIReader client.Reader
	Config    *InstallationConfig
}

InstallationReconciler reconciles a Installation object

func (*InstallationReconciler) Reconcile

func (r *InstallationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is called when watch events happen

func (*InstallationReconciler) SetupWithManager

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

SetupWithManager configures the controller

Jump to

Keyboard shortcuts

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