v1beta1

package
v0.0.0-...-0117315 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the necotiator v1beta1 API group +kubebuilder:object:generate=true +groupName=necotiator.cybozu.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "necotiator.cybozu.io", 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 ResourceUsage

type ResourceUsage struct {
	// Total is total observed usage of the resource.
	// +optional
	Total resource.Quantity `json:"total,omitempty"`

	// Namespaces is observed usage of the resource per namespace.
	// +optional
	Namespaces map[string]resource.Quantity `json:"namespaces,omitempty"`
}

ResourceUsage is aggregated usages of the resource.

func (*ResourceUsage) DeepCopy

func (in *ResourceUsage) DeepCopy() *ResourceUsage

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

func (*ResourceUsage) DeepCopyInto

func (in *ResourceUsage) DeepCopyInto(out *ResourceUsage)

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

type TenantResourceQuota

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

	Spec   TenantResourceQuotaSpec   `json:"spec,omitempty"`
	Status TenantResourceQuotaStatus `json:"status,omitempty"`
}

TenantResourceQuota is the Schema for the tenantresourcequota API

func (*TenantResourceQuota) DeepCopy

func (in *TenantResourceQuota) DeepCopy() *TenantResourceQuota

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

func (*TenantResourceQuota) DeepCopyInto

func (in *TenantResourceQuota) DeepCopyInto(out *TenantResourceQuota)

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

func (*TenantResourceQuota) DeepCopyObject

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

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

type TenantResourceQuotaList

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

TenantResourceQuotaList contains a list of TenantResourceQuota

func (*TenantResourceQuotaList) DeepCopy

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

func (*TenantResourceQuotaList) DeepCopyInto

func (in *TenantResourceQuotaList) DeepCopyInto(out *TenantResourceQuotaList)

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

func (*TenantResourceQuotaList) DeepCopyObject

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

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

type TenantResourceQuotaSpec

type TenantResourceQuotaSpec struct {
	// Hard is the set of desired hard limits for each tenant.
	// +optional
	Hard corev1.ResourceList `json:"hard,omitempty"`

	// NamespaceSelector is used to select namespaces by label.
	// +optional
	NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty"`
}

TenantResourceQuotaSpec defines the desired state of TenantResourceQuota

func (*TenantResourceQuotaSpec) DeepCopy

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

func (*TenantResourceQuotaSpec) DeepCopyInto

func (in *TenantResourceQuotaSpec) DeepCopyInto(out *TenantResourceQuotaSpec)

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

type TenantResourceQuotaStatus

type TenantResourceQuotaStatus struct {
	// Allocated is the current observed allocated resources to namespaces in the tenant.
	// +optional
	Allocated map[corev1.ResourceName]ResourceUsage `json:"allocated,omitempty"`

	// Used is the current observed usage of the resource in the tenant.
	// +optional
	Used map[corev1.ResourceName]ResourceUsage `json:"used,omitempty"`
}

TenantResourceQuotaStatus defines the observed state of TenantResourceQuota

func (*TenantResourceQuotaStatus) DeepCopy

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

func (*TenantResourceQuotaStatus) 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