Documentation ¶
Overview ¶
Copyright 2020 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func Add(mgr manager.Manager) error
- func GetResourceQuotasStatusByNamespace(namespaceStatuses platformv1.ResourceQuotasStatusByNamespace, namespace string) corev1.ResourceQuotaStatus
- func InsertResourceQuotasStatus(namespaceStatuses *platformv1.ResourceQuotasStatusByNamespace, ...)
- func NewClusterResourceQuotaValidatingWebhook(client client.Client, mtx *sync.Mutex, validationEnabled bool) *admission.Webhook
- func NewResourceQuotaValidatingWebhook(client client.Client, mtx *sync.Mutex, validationEnabled bool) *admission.Webhook
- func RemoveResourceQuotasStatusByNamespace(namespaceStatuses *platformv1.ResourceQuotasStatusByNamespace, ...)
- type ReconcileClusterResourceQuota
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResourceQuotasStatusByNamespace ¶
func GetResourceQuotasStatusByNamespace(namespaceStatuses platformv1.ResourceQuotasStatusByNamespace, namespace string) corev1.ResourceQuotaStatus
func InsertResourceQuotasStatus ¶
func InsertResourceQuotasStatus(namespaceStatuses *platformv1.ResourceQuotasStatusByNamespace, newStatus platformv1.ResourceQuotaStatusByNamespace)
func NewClusterResourceQuotaValidatingWebhook ¶ added in v0.6.0
func NewResourceQuotaValidatingWebhook ¶ added in v0.6.0
func NewResourceQuotaValidatingWebhook(client client.Client, mtx *sync.Mutex, validationEnabled bool) *admission.Webhook
+kubebuilder:webhook:path=/validate-resourcequota-v1,mutating=false,sideEffects=None,admissionReviewVersions=v1,failurePolicy=fail,groups="",resources=resourcequotas,verbs=create;update,versions=v1,name=resourcequotas-validation-v1.platform.flanksource.com
func RemoveResourceQuotasStatusByNamespace ¶
func RemoveResourceQuotasStatusByNamespace(namespaceStatuses *platformv1.ResourceQuotasStatusByNamespace, namespace string)