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 ¶
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.
Click to show internal directories.
Click to hide internal directories.