csrapprover

package
v1.58.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 25 Imported by: 1

Documentation

Index

Constants

View Source
const ControllerName = "kubelet-csr-approver"

ControllerName is the name of the controller.

Variables

This section is empty.

Functions

func AddToManager

func AddToManager(mgr manager.Manager) error

AddToManager adds the controller to a Manager using the default config.

func AddToManagerWithOptions

func AddToManagerWithOptions(mgr manager.Manager, conf ControllerConfig) error

AddToManagerWithOptions adds the controller to a Manager with the given config.

Types

type ControllerConfig

type ControllerConfig struct {
	MaxConcurrentWorkers int
	TargetCluster        cluster.Cluster
	Namespace            string
}

ControllerConfig is the completed configuration for the controller.

type ControllerOptions

type ControllerOptions struct {
	// contains filtered or unexported fields
}

ControllerOptions are options for adding the controller to a Manager.

func (*ControllerOptions) AddFlags

func (o *ControllerOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds the needed command line flags to the given FlagSet.

func (*ControllerOptions) Complete

func (o *ControllerOptions) Complete() error

Complete completes the given command line flags and set the defaultControllerConfig accordingly.

func (*ControllerOptions) Completed

func (o *ControllerOptions) Completed() *ControllerConfig

Completed returns the completed ControllerConfig.

type Reconciler

type Reconciler struct {
	SourceClient       client.Client
	TargetClient       client.Client
	CertificatesClient certificatesclientv1.CertificateSigningRequestInterface
	Namespace          string
}

Reconciler reconciles CertificateSigningRequest objects.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile performs the main reconciliation logic.

Jump to

Keyboard shortcuts

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