Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=openmcp.cloud
Index ¶
Constants ¶
const ( // ActiveSingularQuotaIncreaseEffectPrefix is used to prefix the effect annotation of the active QuotaIncrease in singular mode. // It is set even if the QuotaIncrease does not have any effect. ActiveSingularQuotaIncreaseEffectPrefix = "[active]" )
Variables ¶
var ( // LabelPrefix is the common label prefix for all labels used by the Quota Controller. LabelPrefix = fmt.Sprintf("quota.%s", GroupVersion.Group) // SingularQuotaIncreaseLabel is the label used to specify which QuotaIncrease to use in singular mode. // It is attached to the containing namespace. SingularQuotaIncreaseLabel = LabelPrefix + "/use" // BaseQuotaLabel specifies which quota definition from the configuration is applied to this namespace. BaseQuotaLabel = LabelPrefix + "/base" // EffectAnnotation is the annotation used to store the effect of a QuotaIncrease. EffectAnnotation = LabelPrefix + "/effect" // QuotaIncreaseOperationModeLabel is used to display the operation mode on QuotaIncreases and namespaces. QuotaIncreaseOperationModeLabel = LabelPrefix + "/mode" // ManagedByLabel is used to mark the ResourceQuotas created by the Quota Controller. ManagedByLabel = LabelPrefix + "/managed-by" // QuotaDefinitionLabel is used to mark the ResourceQuotas with the QuotaDefinition they are based on. QuotaDefinitionLabel = LabelPrefix + "/quota-definition" )
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "openmcp.cloud", Version: "v1alpha1"} // 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 QuotaIncrease ¶
type QuotaIncrease struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec QuotaIncreaseSpec `json:"spec,omitempty"` }
QuotaIncrease is the Schema for the QuotaIncrease API +kubebuilder:object:root=true +kubebuilder:resource:scope=Namespaced +kubebuilder:resource:shortName=qi +kubebuilder:printcolumn:name="Mode",type=string,JSONPath=`.metadata.labels['quota\.openmcp\.cloud\/mode']` +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:printcolumn:name="Effect",type=string,JSONPath=`.metadata.annotations['quota\.openmcp\.cloud\/effect']`,priority=1
func (*QuotaIncrease) DeepCopy ¶
func (in *QuotaIncrease) DeepCopy() *QuotaIncrease
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaIncrease.
func (*QuotaIncrease) DeepCopyInto ¶
func (in *QuotaIncrease) DeepCopyInto(out *QuotaIncrease)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*QuotaIncrease) DeepCopyObject ¶
func (in *QuotaIncrease) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type QuotaIncreaseList ¶
type QuotaIncreaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []QuotaIncrease `json:"items"` }
QuotaIncreaseList contains a list of QuotaIncrease +kubebuilder:object:root=true
func (*QuotaIncreaseList) DeepCopy ¶
func (in *QuotaIncreaseList) DeepCopy() *QuotaIncreaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaIncreaseList.
func (*QuotaIncreaseList) DeepCopyInto ¶
func (in *QuotaIncreaseList) DeepCopyInto(out *QuotaIncreaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*QuotaIncreaseList) DeepCopyObject ¶
func (in *QuotaIncreaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type QuotaIncreaseSpec ¶
type QuotaIncreaseSpec struct { // Hard maps the resource name to the quantity that should be added to the ResourceQuota. // This is the same format that is used in the ResourceQuota resource. Hard corev1.ResourceList `json:"hard"` }
QuotaIncreaseSpec defines the quota increase for a specific resource.
func (*QuotaIncreaseSpec) DeepCopy ¶
func (in *QuotaIncreaseSpec) DeepCopy() *QuotaIncreaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaIncreaseSpec.
func (*QuotaIncreaseSpec) DeepCopyInto ¶
func (in *QuotaIncreaseSpec) DeepCopyInto(out *QuotaIncreaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.