controller

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

func RunManager

func RunManager(ctx context.Context, cfg Config) error

Types

type Config

type Config struct {
	MetricsAddr          string `yaml:"metricsAddr"`
	ProbeAddr            string `yaml:"probeAddr"`
	EnableLeaderElection bool   `yaml:"enableLeaderElection"`
}

func DefaultConfig

func DefaultConfig() Config

func LoadConfig

func LoadConfig(path string) (Config, error)

type TokenReconciler

type TokenReconciler struct {
	client.Client
	APIReader  client.Reader
	KubeClient kubernetes.Interface
}

func (*TokenReconciler) Reconcile

func (r *TokenReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*TokenReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL