Documentation
¶
Overview ¶
Package controller provides the implementation of the operator's controller logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeHash ¶
ComputeHash returns a hash value calculated from the provided object. The hash will be safe encoded to avoid bad words.
func ComputeVersionedHash ¶
ComputeVersionedHash follows the same rules of ComputeHash with the exception that accepts also a epoc value. The epoc value is used to generate a new hash from a same object. This is useful to force a new hash even if the original object is not changed. A practical use is to force a reconciliation loop of the object.
Types ¶
type PluginConfigurationReconciler ¶
PluginConfigurationReconciler reconciles a PluginConfiguration object.
func (*PluginConfigurationReconciler) Reconcile ¶
func (r *PluginConfigurationReconciler) Reconcile( ctx context.Context, req reconcile.Request, ) (reconcile.Result, error)
Reconcile handles PluginConfiguration changes by creating or updating the per-PC klio-config secret.
func (*PluginConfigurationReconciler) SetupWithManager ¶
func (r *PluginConfigurationReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ServerReconciler ¶
type ServerReconciler struct {
client.Client
Scheme *runtime.Scheme
Recorder events.EventRecorder
HaveSecurityContextConstraints bool
}
ServerReconciler reconciles a Server object.
func (*ServerReconciler) 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 (*ServerReconciler) SetupWithManager ¶
func (r *ServerReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.