package resourcequota
import "k8s.io/kubernetes/plugin/pkg/admission/resourcequota/apis/resourcequota"
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Configuration
- func (in *Configuration) DeepCopy() *Configuration
- func (in *Configuration) DeepCopyInto(out *Configuration)
- func (in *Configuration) DeepCopyObject() runtime.Object
- type LimitedResource
Constants ¶
const GroupName = "resourcequota.admission.k8s.io"
GroupName is the group name use in this package
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Kind ¶
Kind takes an unqualified kind and returns a Group qualified GroupKind
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Configuration ¶
type Configuration struct {
metav1.TypeMeta
// LimitedResources whose consumption is limited by default.
// +optional
LimitedResources []LimitedResource
}
Configuration provides configuration for the ResourceQuota admission controller.
func (*Configuration) DeepCopy ¶
func (in *Configuration) DeepCopy() *Configuration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Configuration.
func (*Configuration) DeepCopyInto ¶
func (in *Configuration) DeepCopyInto(out *Configuration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Configuration) DeepCopyObject ¶
func (in *Configuration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LimitedResource ¶
type LimitedResource struct {
// APIGroup is the name of the APIGroup that contains the limited resource.
// +optional
APIGroup string `json:"apiGroup,omitempty"`
// Resource is the name of the resource this rule applies to.
// For example, if the administrator wants to limit consumption
// of a storage resource associated with persistent volume claims,
// the value would be "persistentvolumeclaims".
Resource string `json:"resource"`
// For each intercepted request, the quota system will evaluate
// its resource usage. It will iterate through each resource consumed
// and if the resource contains any substring in this listing, the
// quota system will ensure that there is a covering quota. In the
// absence of a covering quota, the quota system will deny the request.
// For example, if an administrator wants to globally enforce that
// that a quota must exist to consume persistent volume claims associated
// with any storage class, the list would include
// ".storageclass.storage.k8s.io/requests.storage"
MatchContains []string
}
LimitedResource matches a resource whose consumption is limited by default. To consume the resource, there must exist an associated quota that limits its consumption.
func (*LimitedResource) DeepCopy ¶
func (in *LimitedResource) DeepCopy() *LimitedResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitedResource.
func (*LimitedResource) DeepCopyInto ¶
func (in *LimitedResource) DeepCopyInto(out *LimitedResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files ¶
doc.go register.go types.go zz_generated.deepcopy.go
Directories ¶
| Path | Synopsis |
|---|---|
| plugin/pkg/admission/resourcequota/apis/resourcequota/install | Package install installs the experimental API group, making it available as an option to all of the API encoding/decoding machinery. |
| plugin/pkg/admission/resourcequota/apis/resourcequota/v1alpha1 | Package v1alpha1 is the v1alpha1 version of the API. |
| plugin/pkg/admission/resourcequota/apis/resourcequota/validation |
- Version
- v1.9.4
- Published
- Mar 12, 2018
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 13 minutes ago –
Tools for package owners.