controller

package
v0.0.0-...-1f6a80c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultDPFOperatorConfigSingletonName is the default single valid name of the DPFOperatorConfig.
	DefaultDPFOperatorConfigSingletonName = "dpfoperatorconfig"
	// DefaultDPFOperatorConfigSingletonNamespace is the default single valid name of the DPFOperatorConfig.
	DefaultDPFOperatorConfigSingletonNamespace = "dpf-operator-system"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DPFOperatorConfigReconciler

type DPFOperatorConfigReconciler struct {
	client.Client
	Scheme    *runtime.Scheme
	Settings  *DPFOperatorConfigReconcilerSettings
	Inventory *inventory.SystemComponents
	Defaults  *release.Defaults
}

DPFOperatorConfigReconciler reconciles a DPFOperatorConfig object

func (*DPFOperatorConfigReconciler) DPUServiceToDPFOperatorConfig

func (r *DPFOperatorConfigReconciler) DPUServiceToDPFOperatorConfig(_ context.Context, o client.Object) []ctrl.Request

DPUServiceToDPFOperatorConfig enqueues a reconcile when an event occurs for system DPUServices.

func (*DPFOperatorConfigReconciler) DeploymentToDPFOperatorConfig

func (r *DPFOperatorConfigReconciler) DeploymentToDPFOperatorConfig(ctx context.Context, o client.Object) []ctrl.Request

DeploymentToDPFOperatorConfig enqueues a reconcile when an event occurs for system Deployments.

func (*DPFOperatorConfigReconciler) Reconcile

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

Reconcile reconciles changes in a DPFOperatorConfig.

func (*DPFOperatorConfigReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type DPFOperatorConfigReconcilerSettings

type DPFOperatorConfigReconcilerSettings struct {
	// ConfigSingletonNamespaceName restricts reconciliation of the operator to a single DPFOperator Config with a specified namespace and name.
	ConfigSingletonNamespaceName *types.NamespacedName

	// SkipWebhook skips ValidatingWebhookConfiguration/MutatingWebhookConfiguration installing.
	// SkipWebhook is true iff we are running tests in an environment that doesn't have functioning webhook server.
	SkipWebhook bool
}

DPFOperatorConfigReconcilerSettings contains settings related to the DPFOperatorConfig.

Jump to

Keyboard shortcuts

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