controller

package
v0.1.0-latest-stable Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 45 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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