Documentation
¶
Index ¶
- func ProjectQuotaForObjects(kc client.Client) func(_ context.Context, _ client.Object) []reconcile.Request
- type APIType
- type ProjectQuotaReconciler
- func (r *ProjectQuotaReconciler) CalculateStatus(pj *v1alpha1.ProjectQuota) error
- func (r *ProjectQuotaReconciler) ListKinds() (map[string]APIType, error)
- func (r *ProjectQuotaReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *ProjectQuotaReconciler) SetupWithManager(mgr ctrl.Manager) (*ProjectQuotaReconciler, error)
- func (r *ProjectQuotaReconciler) StartWatcher(rid kmapi.ResourceID)
- func (r *ProjectQuotaReconciler) UsedQuota(ns string, typeInfo APIType) (core.ResourceList, *QuotaResult, error)
- type QuotaResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProjectQuotaReconciler ¶
ProjectQuotaReconciler reconciles a ProjectQuota object
func NewReconciler ¶
func NewReconciler(kc client.Client, disco discovery.DiscoveryInterface) *ProjectQuotaReconciler
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) 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 }
Click to show internal directories.
Click to hide internal directories.