Documentation ¶
Index ¶
Constants ¶
View Source
const ( ControllerName = "resourcequota-controller" DefaultResyncPeriod = 5 * time.Minute DefaultMaxConcurrentReconciles = 8 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ByName ¶
type ByName []corev1.ResourceQuota
type DefaultLockFactory ¶
type DefaultLockFactory struct {
// contains filtered or unexported fields
}
func NewDefaultLockFactory ¶
func NewDefaultLockFactory() *DefaultLockFactory
type LockFactory ¶
Following code copied from github.com/openshift/apiserver-library-go/pkg/admission/quota/clusterresourcequota
type Reconciler ¶
type Reconciler struct { client.Client MaxConcurrentReconciles int // Controls full recalculation of quota usage ResyncPeriod time.Duration InformerFactory k8sinformers.SharedInformerFactory // contains filtered or unexported fields }
Reconciler reconciles a Workspace object
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
type ResourceQuotaAdmission ¶
type ResourceQuotaAdmission struct {
// contains filtered or unexported fields
}
func (*ResourceQuotaAdmission) Handle ¶
func (r *ResourceQuotaAdmission) Handle(ctx context.Context, req webhook.AdmissionRequest) webhook.AdmissionResponse
Click to show internal directories.
Click to hide internal directories.