controller

package
v1.24.6 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func ConfigMapOrSecretTrigger

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

func ParseListValues added in v1.24.6

func ParseListValues(annotations string) []string

func PluginUnhealthyTrigger

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

func Run

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

func Setup

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

Types

type DependencyError

type DependencyError struct {
	Reason string
	Object corev1.ObjectReference
}

func (DependencyError) Error

func (e DependencyError) Error() string

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."`
}

func NewDefaultOptions

func NewDefaultOptions() *Options

type Reconciler

type Reconciler struct {
	client.Client
	Applier *bundle.BundleApplier
}

func (*Reconciler) Reconcile

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

func (*Reconciler) Sync

func (r *Reconciler) Sync(ctx context.Context, bundle *pluginsv1beta1.Plugin) error

Sync

Jump to

Keyboard shortcuts

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