...

Package terminalctl

import "edge-infra.dev/pkg/sds/k8s/controllers/terminalctl"
Overview
Index
Subdirectories

Overview ▾

Constants

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

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

type Config struct {
}

type TerminalReconciler

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 (*TerminalReconciler) PatchOpts

func (r *TerminalReconciler) PatchOpts() []patch.Option

func (*TerminalReconciler) Reconcile

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 (*TerminalReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Subdirectories

Name Synopsis
..
pkg
plugins
emergencyaccess