profile

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReasonCreateQuotaFailed = "CreateQuotaFailed"
	ReasonUpdateQuotaFailed = "UpdateQuotaFailed"
)
View Source
const Name = "quotaprofile"

Variables

This section is empty.

Functions

func Add

func Add(mgr ctrl.Manager) error

func DecorateResourceByResourceRatio

func DecorateResourceByResourceRatio(profile *v1alpha1.ElasticQuotaProfile, total corev1.ResourceList)

func GetNodeAllocatable

func GetNodeAllocatable(node corev1.Node) corev1.ResourceList

func MultiplyQuantity

func MultiplyQuantity(value resource.Quantity, resName corev1.ResourceName, ratio float64) resource.Quantity

Types

type QuotaProfileReconciler

type QuotaProfileReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

QuotaProfileReconciler reconciles a QuotaProfile object

func (*QuotaProfileReconciler) Reconcile

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

func (*QuotaProfileReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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