clusterresourcequota

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

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 NewClusterResourceQuotaValidatingWebhook(client client.Client, mtx *sync.Mutex, validationEnabled bool) *admission.Webhook

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)

Types

type ReconcileClusterResourceQuota

type ReconcileClusterResourceQuota struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

func (*ReconcileClusterResourceQuota) Reconcile

Jump to

Keyboard shortcuts

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