const ( ErrPluginFailed = "plugin failed" ErrPluginFinalizerFailed = "plugin finalizer failed" ErrInvalidTerminal = "invalid Terminal spec" ErrAddingFinalizer = "unable to register finalizer" ErrTerminalStatusUpdate = "unable to update Terminal status" )
func Run(config Config, o ...controller.Option) error
Run creates the manager, sets up the controller, and then starts everything. It returns the created manager for testing purposes
type Config struct { }
TerminalReconciler reconciles a Terminal object
type TerminalReconciler struct { client.Client Log logr.Logger Metrics metrics.Metrics Config *Config DefaultRequeue time.Duration Conditions reconcile.Conditions // ResourceManager is a server-side apply client that can poll for the resources // we are applying to the server ResourceManager *ssa.ResourceManager Name string }
func (r *TerminalReconciler) PatchOpts() []patch.Option
func (r *TerminalReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, recErr 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 (r *TerminalReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Name | Synopsis |
---|---|
.. | |
pkg | |
plugins | |
emergencyaccess |