controllers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeQuotaConfigReconciler

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

NodeQuotaConfigReconciler reconciles a NodeQuotaConfig object

func (*NodeQuotaConfigReconciler) CalculateRootSubnamespaces

func (r *NodeQuotaConfigReconciler) CalculateRootSubnamespaces(ctx context.Context, config *danav1alpha1.NodeQuotaConfig, logger logr.Logger) (bool, error)

CalculateRootSubnamespaces calculates the resource allocation for the root subnamespaces based on the provided NodeQuotaConfig. It takes a context, the NodeQuotaConfig to reconcile, and a logger for logging informational messages. It returns an error (if any occurred) during the calculation.

func (*NodeQuotaConfigReconciler) Reconcile

func (*NodeQuotaConfigReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*NodeQuotaConfigReconciler) UpdateConfigStatus

func (r *NodeQuotaConfigReconciler) UpdateConfigStatus(ctx context.Context, config *danav1alpha1.NodeQuotaConfig, logger logr.Logger) error

UpdateConfigStatus updates the status of the NodeQuotaConfig if it's different from the current status.

Jump to

Keyboard shortcuts

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