Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the platform v1 API group +kubebuilder:object:generate=true +groupName=platform.flanksource.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupName is the group name use in this package GroupName = "platform.flanksource.com" // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} // 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 ClusterResourceQuota ¶
type ClusterResourceQuota struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Spec defines the desired quota Spec ClusterResourceQuotaSpec `json:"spec,omitempty"` // Status defines the actual enforced quota and its current usage Status ClusterResourceQuotaStatus `json:"status,omitempty"` }
ClusterResourceQuota is the Schema for the clusterresourcequotas API
func (*ClusterResourceQuota) DeepCopy ¶
func (in *ClusterResourceQuota) DeepCopy() *ClusterResourceQuota
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceQuota.
func (*ClusterResourceQuota) DeepCopyInto ¶
func (in *ClusterResourceQuota) DeepCopyInto(out *ClusterResourceQuota)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterResourceQuota) DeepCopyObject ¶
func (in *ClusterResourceQuota) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterResourceQuotaList ¶
type ClusterResourceQuotaList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterResourceQuota `json:"items"` }
ClusterResourceQuotaList contains a list of ClusterResourceQuota
func (*ClusterResourceQuotaList) DeepCopy ¶
func (in *ClusterResourceQuotaList) DeepCopy() *ClusterResourceQuotaList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceQuotaList.
func (*ClusterResourceQuotaList) DeepCopyInto ¶
func (in *ClusterResourceQuotaList) DeepCopyInto(out *ClusterResourceQuotaList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterResourceQuotaList) DeepCopyObject ¶
func (in *ClusterResourceQuotaList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterResourceQuotaSpec ¶
type ClusterResourceQuotaSpec struct { // Quota sets aggregate quota restrictions enforced across all namespaces Quota corev1.ResourceQuotaSpec `json:"quota,omitempty"` }
ClusterResourceQuotaSpec defines the desired state of ClusterResourceQuota
func (*ClusterResourceQuotaSpec) DeepCopy ¶
func (in *ClusterResourceQuotaSpec) DeepCopy() *ClusterResourceQuotaSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceQuotaSpec.
func (*ClusterResourceQuotaSpec) DeepCopyInto ¶
func (in *ClusterResourceQuotaSpec) DeepCopyInto(out *ClusterResourceQuotaSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterResourceQuotaStatus ¶
type ClusterResourceQuotaStatus struct { // Total defines the actual enforced quota and its current usage across all namespaces Total corev1.ResourceQuotaStatus `json:"total,omitempty"` // Slices the quota used per namespace Namespaces ResourceQuotasStatusByNamespace `json:"namespaces"` }
ClusterResourceQuotaStatus defines the observed state of ClusterResourceQuota
func (*ClusterResourceQuotaStatus) DeepCopy ¶
func (in *ClusterResourceQuotaStatus) DeepCopy() *ClusterResourceQuotaStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceQuotaStatus.
func (*ClusterResourceQuotaStatus) DeepCopyInto ¶
func (in *ClusterResourceQuotaStatus) DeepCopyInto(out *ClusterResourceQuotaStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceQuotaStatusByNamespace ¶
type ResourceQuotaStatusByNamespace struct { // Namespace the project this status applies to Namespace string `json:"namespace"` // Status indicates how many resources have been consumed by this project Status corev1.ResourceQuotaStatus `json:"status"` }
ResourceQuotaStatusByNamespace gives status for a particular name
func (*ResourceQuotaStatusByNamespace) DeepCopy ¶
func (in *ResourceQuotaStatusByNamespace) DeepCopy() *ResourceQuotaStatusByNamespace
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceQuotaStatusByNamespace.
func (*ResourceQuotaStatusByNamespace) DeepCopyInto ¶
func (in *ResourceQuotaStatusByNamespace) DeepCopyInto(out *ResourceQuotaStatusByNamespace)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceQuotasStatusByNamespace ¶
type ResourceQuotasStatusByNamespace []ResourceQuotaStatusByNamespace
ResourceQuotasStatusByNamespace bundles multiple ResourceQuotaStatusByNamespace
func (ResourceQuotasStatusByNamespace) DeepCopy ¶
func (in ResourceQuotasStatusByNamespace) DeepCopy() ResourceQuotasStatusByNamespace
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceQuotasStatusByNamespace.
func (ResourceQuotasStatusByNamespace) DeepCopyInto ¶
func (in ResourceQuotasStatusByNamespace) DeepCopyInto(out *ResourceQuotasStatusByNamespace)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.