kubernetes: k8s.io/kubernetes/plugin/pkg/admission/resourcequota/apis/resourcequota/v1alpha1 Index | Files

package v1alpha1

import "k8s.io/kubernetes/plugin/pkg/admission/resourcequota/apis/resourcequota/v1alpha1"

Package v1alpha1 is the v1alpha1 version of the API.

Index

Package Files

defaults.go doc.go register.go types.go zz_generated.conversion.go zz_generated.deepcopy.go zz_generated.defaults.go

Constants

const GroupName = "resourcequota.admission.k8s.io"

GroupName is the group name use in this package

Variables

var (

    // SchemeBuilder is a pointer used to call AddToScheme
    SchemeBuilder runtime.SchemeBuilder

    // AddToScheme is used to register the types to API encoding/decoding machinery
    AddToScheme = localSchemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

func Convert_resourcequota_Configuration_To_v1alpha1_Configuration Uses

func Convert_resourcequota_Configuration_To_v1alpha1_Configuration(in *resourcequota.Configuration, out *Configuration, s conversion.Scope) error

Convert_resourcequota_Configuration_To_v1alpha1_Configuration is an autogenerated conversion function.

func Convert_resourcequota_LimitedResource_To_v1alpha1_LimitedResource Uses

func Convert_resourcequota_LimitedResource_To_v1alpha1_LimitedResource(in *resourcequota.LimitedResource, out *LimitedResource, s conversion.Scope) error

Convert_resourcequota_LimitedResource_To_v1alpha1_LimitedResource is an autogenerated conversion function.

func Convert_v1alpha1_Configuration_To_resourcequota_Configuration Uses

func Convert_v1alpha1_Configuration_To_resourcequota_Configuration(in *Configuration, out *resourcequota.Configuration, s conversion.Scope) error

Convert_v1alpha1_Configuration_To_resourcequota_Configuration is an autogenerated conversion function.

func Convert_v1alpha1_LimitedResource_To_resourcequota_LimitedResource Uses

func Convert_v1alpha1_LimitedResource_To_resourcequota_LimitedResource(in *LimitedResource, out *resourcequota.LimitedResource, s conversion.Scope) error

Convert_v1alpha1_LimitedResource_To_resourcequota_LimitedResource is an autogenerated conversion function.

func RegisterConversions Uses

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults Uses

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func SetDefaults_Configuration Uses

func SetDefaults_Configuration(obj *Configuration)

func SetObjectDefaults_Configuration Uses

func SetObjectDefaults_Configuration(in *Configuration)

type Configuration Uses

type Configuration struct {
    metav1.TypeMeta `json:",inline"`

    // LimitedResources whose consumption is limited by default.
    // +optional
    LimitedResources []LimitedResource `json:"limitedResources"`
}

Configuration provides configuration for the ResourceQuota admission controller.

func (*Configuration) DeepCopy Uses

func (in *Configuration) DeepCopy() *Configuration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Configuration.

func (*Configuration) DeepCopyInto Uses

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 Uses

func (in *Configuration) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type LimitedResource Uses

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 `json:"matchContains,omitempty"`
    // For each intercepted request, the quota system will figure out if the input object
    // satisfies a scope which is present in this listing, then
    // 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
    // a quota must exist to create a pod with "cluster-services" priorityclass
    // the list would include "scopeName=PriorityClass, Operator=In, Value=cluster-services"
    // +optional
    MatchScopes []v1.ScopedResourceSelectorRequirement `json:"matchScopes,omitempty"`
}

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 Uses

func (in *LimitedResource) DeepCopy() *LimitedResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitedResource.

func (*LimitedResource) DeepCopyInto Uses

func (in *LimitedResource) DeepCopyInto(out *LimitedResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Package v1alpha1 imports 7 packages (graph) and is imported by 1 packages. Updated 2019-07-01. Refresh now. Tools for package owners.