controllers

package
v0.0.0-...-a09e481 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

View Source
const (
	P11PrepReadyCondition      = "P11PrepReady"
	P11PrepReadyInitMessage    = "P11 Prep job not started"
	P11PrepReadyMessage        = "P11 Prep job completed"
	P11PrepReadyErrorMessage   = "P11 Prep job error occurred %s"
	P11PrepReadyRunningMessage = "P11 Prep job is still running"
	P11PrepReadyNotRunMessage  = "P11 Prep job not run"
)
View Source
const (
	TransportURL = "transport_url"
)

Variables

This section is empty.

Functions

func GenerateConfigsGeneric

func GenerateConfigsGeneric(
	ctx context.Context, h *helper.Helper,
	instance client.Object,
	envVars *map[string]env.Setter,
	templateParameters map[string]interface{},
	customData map[string]string,
	cmLabels map[string]string,
	scripts bool,
) error

GenerateConfigsGeneric - generates config files

func GeneratePKCS11TemplateMap

func GeneratePKCS11TemplateMap(
	ctx context.Context,
	h *helper.Helper,
	pkcs11 barbicanv1beta1.BarbicanPKCS11Template,
	namespace string,
) (map[string]interface{}, error)

func GenerateSecretStoreTemplateMap

func GenerateSecretStoreTemplateMap(
	enabledSecretStores []barbicanv1beta1.SecretStore,
	globalDefaultSecretStore barbicanv1beta1.SecretStore,
) (map[string]interface{}, error)

Types

type BarbicanAPIReconciler

type BarbicanAPIReconciler struct {
	client.Client
	Kclient kubernetes.Interface
	Scheme  *runtime.Scheme
}

BarbicanAPIReconciler reconciles a BarbicanAPI object

func (*BarbicanAPIReconciler) GetClient

func (r *BarbicanAPIReconciler) GetClient() client.Client

GetClient -

func (*BarbicanAPIReconciler) GetKClient

func (r *BarbicanAPIReconciler) GetKClient() kubernetes.Interface

GetKClient -

func (*BarbicanAPIReconciler) GetLogger

func (r *BarbicanAPIReconciler) GetLogger(ctx context.Context) logr.Logger

GetLogger returns a logger object with a prefix of "controller.name" and additional controller context fields

func (*BarbicanAPIReconciler) GetScheme

func (r *BarbicanAPIReconciler) GetScheme() *runtime.Scheme

GetScheme -

func (*BarbicanAPIReconciler) Reconcile

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

Reconcile BarbicanAPI

func (*BarbicanAPIReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type BarbicanKeystoneListenerReconciler

type BarbicanKeystoneListenerReconciler struct {
	client.Client
	Kclient kubernetes.Interface
	Scheme  *runtime.Scheme
}

BarbicanKeystoneListenerReconciler reconciles a BarbicanKeystoneListener object

func (*BarbicanKeystoneListenerReconciler) GetLogger

GetLogger returns a logger object with a prefix of "controller.name" and additional controller context fields

func (*BarbicanKeystoneListenerReconciler) Reconcile

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

Reconcile BarbicanAPI

func (*BarbicanKeystoneListenerReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type BarbicanReconciler

type BarbicanReconciler struct {
	client.Client
	Kclient kubernetes.Interface
	Scheme  *runtime.Scheme
}

BarbicanReconciler reconciles a Barbican object

func (*BarbicanReconciler) GetLogger

func (r *BarbicanReconciler) GetLogger(ctx context.Context) logr.Logger

GetLogger returns a logger object with a prefix of "controller.name" and additional controller context fields

func (*BarbicanReconciler) Reconcile

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

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

SetupWithManager sets up the controller with the Manager.

type BarbicanWorkerReconciler

type BarbicanWorkerReconciler struct {
	client.Client
	Kclient kubernetes.Interface
	Scheme  *runtime.Scheme
}

BarbicanWorkerReconciler reconciles a BarbicanWorker object

func (*BarbicanWorkerReconciler) GetLogger

GetLogger returns a logger object with a prefix of "controller.name" and additional controller context fields

func (*BarbicanWorkerReconciler) Reconcile

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

Reconcile BarbicanAPI

func (*BarbicanWorkerReconciler) SetupWithManager

func (r *BarbicanWorkerReconciler) 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