v1alpha1

package
v0.17.19 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 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"`
}

+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 []ResourceQuota `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 ResourceQuota

type ResourceQuota 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 (*ResourceQuota) DeepCopy

func (in *ResourceQuota) DeepCopy() *ResourceQuota

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

func (*ResourceQuota) DeepCopyInto

func (in *ResourceQuota) DeepCopyInto(out *ResourceQuota)

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