v1alpha1

package
v0.17.20 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Overview

+k8s:deepcopy-gen=package,register +k8s:openapi-gen=true +k8s:defaulter-gen=TypeMeta +groupName=management.k8s.appscode.com

Index

Constants

View Source
const (
	ResourceKindProjectQuota = "ProjectQuota"
	ResourceProjectQuota     = "projectquota"
	ResourceProjectQuotas    = "projectquotas"
)

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: management.GroupName, Version: "v1alpha1"}

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ProjectQuota

type ProjectQuota struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ProjectQuotaSpec   `json:"spec,omitempty"`
	Status            ProjectQuotaStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=projectquotas,singular=projectquota,scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (ProjectQuota) CustomResourceDefinition

func (v ProjectQuota) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*ProjectQuota) DeepCopy

func (in *ProjectQuota) DeepCopy() *ProjectQuota

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

func (*ProjectQuota) DeepCopyInto

func (in *ProjectQuota) DeepCopyInto(out *ProjectQuota)

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

func (*ProjectQuota) DeepCopyObject

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

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

type ProjectQuotaList

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

func (*ProjectQuotaList) DeepCopy

func (in *ProjectQuotaList) DeepCopy() *ProjectQuotaList

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

func (*ProjectQuotaList) DeepCopyInto

func (in *ProjectQuotaList) DeepCopyInto(out *ProjectQuotaList)

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

func (*ProjectQuotaList) DeepCopyObject

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

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

type ProjectQuotaSpec

type ProjectQuotaSpec struct {
	Quotas []ResourceQuotaSpec `json:"quotas"`
}

func (*ProjectQuotaSpec) DeepCopy

func (in *ProjectQuotaSpec) DeepCopy() *ProjectQuotaSpec

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

func (*ProjectQuotaSpec) DeepCopyInto

func (in *ProjectQuotaSpec) DeepCopyInto(out *ProjectQuotaSpec)

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

type ProjectQuotaStatus added in v0.17.20

type ProjectQuotaStatus struct {
	Quotas []ResourceQuotaStatus `json:"quotas"`
}

ProjectQuotaStatus defines the observed state of ProjectQuota

func (*ProjectQuotaStatus) DeepCopy added in v0.17.20

func (in *ProjectQuotaStatus) DeepCopy() *ProjectQuotaStatus

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

func (*ProjectQuotaStatus) DeepCopyInto added in v0.17.20

func (in *ProjectQuotaStatus) DeepCopyInto(out *ProjectQuotaStatus)

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

type ResourceQuotaSpec added in v0.17.20

type ResourceQuotaSpec struct {
	Group string `json:"group,omitempty"`
	Kind  string `json:"kind,omitempty"`
	// Hard is the set of enforced hard limits for each named resource.
	// More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
	// +optional
	Hard core.ResourceList `json:"hard,omitempty"`
}

func (*ResourceQuotaSpec) DeepCopy added in v0.17.20

func (in *ResourceQuotaSpec) DeepCopy() *ResourceQuotaSpec

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

func (*ResourceQuotaSpec) DeepCopyInto added in v0.17.20

func (in *ResourceQuotaSpec) DeepCopyInto(out *ResourceQuotaSpec)

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

type ResourceQuotaStatus added in v0.17.20

type ResourceQuotaStatus struct {
	ResourceQuotaSpec `json:",inline"`
	// Used is the current observed total usage of the resource in the namespace.
	// +optional
	Used core.ResourceList `json:"used,omitempty"`
}

func (*ResourceQuotaStatus) DeepCopy added in v0.17.20

func (in *ResourceQuotaStatus) DeepCopy() *ResourceQuotaStatus

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

func (*ResourceQuotaStatus) DeepCopyInto added in v0.17.20

func (in *ResourceQuotaStatus) DeepCopyInto(out *ResourceQuotaStatus)

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