projectquota

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProjectQuotaForObjects

func ProjectQuotaForObjects(kc client.Client) func(_ context.Context, _ client.Object) []reconcile.Request

Obj -> ProjectQuota

Types

type APIType

type APIType struct {
	Group      string
	Kind       string
	Resource   string
	Versions   []string
	Namespaced bool
}

type ProjectQuotaReconciler

type ProjectQuotaReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

ProjectQuotaReconciler reconciles a ProjectQuota object

func (*ProjectQuotaReconciler) CalculateStatus

func (r *ProjectQuotaReconciler) CalculateStatus(pj *v1alpha1.ProjectQuota) error

func (*ProjectQuotaReconciler) ListKinds

func (r *ProjectQuotaReconciler) ListKinds() (map[string]APIType, error)

handle non-namespaced resource limits

func (*ProjectQuotaReconciler) Reconcile

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

func (*ProjectQuotaReconciler) SetupWithManager

func (r *ProjectQuotaReconciler) SetupWithManager(mgr ctrl.Manager) (*ProjectQuotaReconciler, error)

SetupWithManager sets up the controller with the Manager.

func (*ProjectQuotaReconciler) StartWatcher

func (r *ProjectQuotaReconciler) StartWatcher(rid kmapi.ResourceID)

func (*ProjectQuotaReconciler) UsedQuota

func (r *ProjectQuotaReconciler) UsedQuota(ns string, typeInfo APIType) (core.ResourceList, *QuotaResult, error)

type QuotaResult

type QuotaResult struct {
	Result v1alpha1.QuotaResult
	Reason string
}

Jump to

Keyboard shortcuts

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