controllers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActivePolicy policy

ActivePolicy is the active policy generated from CRD. There would be exactly one active policy at any given time.

View Source
var (
	// a map to track active stores
	StoreMap = map[string]referrerstore.ReferrerStore{}
)
View Source
var (
	// a map to track of active verifiers
	VerifierMap = map[string]vr.ReferenceVerifier{}
)

Functions

func GetCertificatesMap

func GetCertificatesMap() map[string][]*x509.Certificate

returns the internal certificate map

Types

type CertificateStoreReconciler

type CertificateStoreReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

CertificateStoreReconciler reconciles a CertificateStore object

func (*CertificateStoreReconciler) 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. the CertificateStore object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.2/pkg/reconcile

func (*CertificateStoreReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type LogrusSink

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

LogrusSink is an adapter to allow the use of logrus with logr, as required by k8s controller-runtime.

func NewLogrusSink

func NewLogrusSink(logger *logrus.Logger) *LogrusSink

func (*LogrusSink) Enabled

func (sink *LogrusSink) Enabled(level int) bool

Enabled tests whether this LogSink is enabled at the specified V-level. For example, commandline flags might be used to set the logging verbosity and disable some info logs.

func (*LogrusSink) Error

func (sink *LogrusSink) Error(err error, msg string, keysAndValues ...interface{})

Error logs an error, with the given message and key/value pairs as context. See Logger.Error for more details.

func (*LogrusSink) Info

func (sink *LogrusSink) Info(_ int, msg string, keysAndValues ...interface{})

Info logs a non-error message with the given key/value pairs as context. The level argument is provided for optional logging. This method will only be called when Enabled(level) is true. See Logger.Info for more details.

func (*LogrusSink) Init

func (sink *LogrusSink) Init(_ logr.RuntimeInfo)

Init receives optional information about the logr library for LogSink implementations that need it.

func (*LogrusSink) WithName

func (sink *LogrusSink) WithName(name string) logr.LogSink

WithName returns a new LogSink with the specified name appended. See Logger.WithName for more details.

func (*LogrusSink) WithValues

func (sink *LogrusSink) WithValues(keysAndValues ...interface{}) logr.LogSink

WithValues returns a new LogSink with additional key/value pairs. See Logger.WithValues for more details.

type PolicyReconciler

type PolicyReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

PolicyReconciler reconciles a Policy object

func (*PolicyReconciler) Reconcile

func (r *PolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.2/pkg/reconcile

func (*PolicyReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type StoreReconciler

type StoreReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

StoreReconciler reconciles a Store object

func (*StoreReconciler) Reconcile

func (r *StoreReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.2/pkg/reconcile

func (*StoreReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type VerifierReconciler

type VerifierReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

VerifierReconciler reconciles a Verifier object

func (*VerifierReconciler) Reconcile

func (r *VerifierReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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. TODO(user): Modify the Reconcile function to compare the state specified by the Verifier object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.2/pkg/reconcile

func (*VerifierReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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