controller

package
v0.0.0-...-45355c3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 44 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"
)
View Source
const (
	// ProvisioningCASecretName is the cert-manager managed Secret holding the DPF provisioning CA
	// (certificate and private key). It is defined locally to avoid importing internal provisioning packages.
	// It is exported so the manager's cache can be scoped to only this Secret (see cmd/operator/main.go).
	ProvisioningCASecretName = "dpf-provisioning-ca-secret"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DPFOperatorConfigReconciler

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

DPFOperatorConfigReconciler reconciles a DPFOperatorConfig object

func (*DPFOperatorConfigReconciler) CATrustBundleConfigMapToDPFOperatorConfig

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

CATrustBundleConfigMapToDPFOperatorConfig enqueues a reconcile when the CA trust bundle ConfigMap changes so bundle-hash is recomputed by the operator after bundle edits (e.g. prune phase).

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) DaemonSetToDPFOperatorConfig

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

DaemonSetToDPFOperatorConfig enqueues a reconcile when an event occurs for system DaemonSets.

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) ProvisioningCASecretToDPFOperatorConfig

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

ProvisioningCASecretToDPFOperatorConfig enqueues a reconcile when the provisioning CA Secret changes so the CA trust bundle is kept in sync with the CA certificate (e.g. after a CA renewal/rotation).

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) ResourceToDPFOperatorConfig

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

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

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