v1beta1

package
v0.0.0-...-363ae4f Latest Latest
Warning

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

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

Documentation

Overview

Package v1beta1 contains API Schema definitions for the k8s-resourcequota-autoscaler v1beta1 API group +kubebuilder:object:generate=true +groupName=k8s-resourcequota-autoscaler.m21r.de

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "k8s-resourcequota-autoscaler.m21r.de", Version: "v1beta1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type ManagedResourceQuota

type ManagedResourceQuota struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ManagedResourceQuotaSpec   `json:"spec,omitempty"`
	Status ManagedResourceQuotaStatus `json:"status,omitempty"`
}

ManagedResourceQuota is the Schema for the managedresourcequota API

func (*ManagedResourceQuota) DeepCopy

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

func (*ManagedResourceQuota) DeepCopyInto

func (in *ManagedResourceQuota) DeepCopyInto(out *ManagedResourceQuota)

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

func (*ManagedResourceQuota) DeepCopyObject

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

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

type ManagedResourceQuotaList

type ManagedResourceQuotaList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ManagedResourceQuota `json:"items"`
}

ManagedResourceQuotaList contains a list of ManagedResourceQuota

func (*ManagedResourceQuotaList) DeepCopy

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

func (*ManagedResourceQuotaList) DeepCopyInto

func (in *ManagedResourceQuotaList) DeepCopyInto(out *ManagedResourceQuotaList)

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

func (*ManagedResourceQuotaList) DeepCopyObject

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

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

type ManagedResourceQuotaSpec

type ManagedResourceQuotaSpec struct {
	Template ResourceQuotaTemplateSpec `json:"template,omitempty"`
}

ManagedResourceQuotaSpec defines the desired state of ManagedResourceQuota

func (*ManagedResourceQuotaSpec) DeepCopy

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

func (*ManagedResourceQuotaSpec) DeepCopyInto

func (in *ManagedResourceQuotaSpec) DeepCopyInto(out *ManagedResourceQuotaSpec)

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

type ManagedResourceQuotaStatus

type ManagedResourceQuotaStatus struct {
}

ManagedResourceQuotaStatus defines the observed state of ManagedResourceQuota

func (*ManagedResourceQuotaStatus) DeepCopy

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

func (*ManagedResourceQuotaStatus) DeepCopyInto

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

type ResourceList

type ResourceList map[corev1.ResourceName]string

func (ResourceList) DeepCopy

func (in ResourceList) DeepCopy() ResourceList

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

func (ResourceList) DeepCopyInto

func (in ResourceList) DeepCopyInto(out *ResourceList)

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

type ResourceQuotaTemplateSpec

type ResourceQuotaTemplateSpec struct {
	// hard is the set of desired hard limits for each named resource.
	// More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
	// +optional
	Hard ResourceList `json:"hard,omitempty"`
	// A collection of filters that must match each object tracked by a quota.
	// If not specified, the quota matches all objects.
	// +optional
	Scopes []corev1.ResourceQuotaScope `json:"scopes,omitempty"`
	// scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
	// but expressed using ScopeSelectorOperator in combination with possible values.
	// For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
	// +optional
	ScopeSelector *corev1.ScopeSelector `json:"scopeSelector,omitempty"`
}

func (*ResourceQuotaTemplateSpec) DeepCopy

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

func (*ResourceQuotaTemplateSpec) DeepCopyInto

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

Jump to

Keyboard shortcuts

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