Documentation ¶
Index ¶
- func GetResourceQuotasStatusByNamespace(namespaceStatuses configv1alpha1.AccountQuotasStatusByNamespace, ...) (corev1.ResourceQuotaStatus, bool)
- func InsertResourceQuotasStatus(namespaceStatuses *configv1alpha1.AccountQuotasStatusByNamespace, ...)
- func NewAccountResourceQuota(ctrlCtx *controllers.Context) admission.ValidationInterface
- func NewQuotaConfiguration(f quota.ListerForResourceFunc) quota.Configuration
- type ByName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResourceQuotasStatusByNamespace ¶
func GetResourceQuotasStatusByNamespace(namespaceStatuses configv1alpha1.AccountQuotasStatusByNamespace, namespace string) (corev1.ResourceQuotaStatus, bool)
func InsertResourceQuotasStatus ¶
func InsertResourceQuotasStatus(namespaceStatuses *configv1alpha1.AccountQuotasStatusByNamespace, newStatus configv1alpha1.AccountQuotaStatusByNamespace)
func NewAccountResourceQuota ¶
func NewAccountResourceQuota(ctrlCtx *controllers.Context) admission.ValidationInterface
NewAccountResourceQuota configures an admission controller that can enforce accountQuota constraints using the provided registry. The registry must have the capability to handle group/kinds that are persisted by the server this admission controller is intercepting
func NewQuotaConfiguration ¶
func NewQuotaConfiguration(f quota.ListerForResourceFunc) quota.Configuration
NewQuotaConfiguration creates a new quota configuration that can be used to create quota registry
Types ¶
Click to show internal directories.
Click to hide internal directories.