installer

package
v1.21.2 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginsControllerConcurrency = 5
	FinalizerName                = "plugins.kubegems.io/finalizer"
)

Variables

This section is empty.

Functions

func ConfigMapOrSecretTrigger

func ConfigMapOrSecretTrigger(ctx context.Context, cli client.Client) handler.EventHandler

func Run

func Run(ctx context.Context, options *Options) error

func Setup

func Setup(ctx context.Context, mgr ctrl.Manager, options *bundle.Options) error

Types

type Options

type Options struct {
	MetricsAddr          string `json:"metricsAddr,omitempty" description:"The address the metric endpoint binds to."`
	EnableLeaderElection bool   `json:"enableLeaderElection,omitempty" description:"Enable leader election for controller manager."`
	ProbeAddr            string `json:"probeAddr,omitempty" description:"The address the probe endpoint binds to."`
	PluginsDir           string `json:"pluginsDir,omitempty" description:"The directory that contains the plugins."`
}

func NewDefaultOptions

func NewDefaultOptions() *Options

type Reconciler

type Reconciler struct {
	*controllers.BundleReconciler
}

func (*Reconciler) Reconcile

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

Jump to

Keyboard shortcuts

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