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 InitConfig ¶ added in v0.2.0
type InitConfig struct {
*apiextensionsv1.JSON
}
InitConfig wraps apiextensionsv1.JSON to provide proper YAML marshaling.
func (*InitConfig) MarshalYAML ¶ added in v0.2.0
func (c *InitConfig) MarshalYAML() (any, error)
MarshalYAML implements yaml.Marshaler to serialize the JSON content as nested YAML.
type PluginConfig ¶
type PluginConfig struct {
InitConfig *InitConfig `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, recorder events.EventRecorder, 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, reterr 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.