plugin

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package plugin defines the plugin controller logic. It handles the lifecycle of the Plugin resource.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginConfig

type PluginConfig struct {
	InitConfig  map[string]string `yaml:"init_config,omitempty"`
	LibraryPath string            `yaml:"library_path"`
	Name        string            `yaml:"name"`
	OpenParams  string            `yaml:"open_params,omitempty"`
}

PluginConfig is the configuration for a plugin.

type PluginReconciler

type PluginReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	PluginsConfig *PluginsConfig
	// contains filtered or unexported fields
}

PluginReconciler reconciles a Plugin object.

func NewPluginReconciler

func NewPluginReconciler(cl client.Client, scheme *runtime.Scheme, nodeName, namespace string) *PluginReconciler

NewPluginReconciler creates a new PluginReconciler instance.

func (*PluginReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*PluginReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PluginsConfig

type PluginsConfig struct {
	Configs     []PluginConfig `yaml:"plugins"`
	LoadPlugins []string       `yaml:"load_plugins,omitempty"`
}

PluginsConfig is the configuration for the plugins.

Jump to

Keyboard shortcuts

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