Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the k8s v1alpha1 API group +kubebuilder:object:generate=true +groupName=k8s.cloudscaler.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "k8s.cloudscaler.io", 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 Scaler ¶
type Scaler struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ScalerSpec `json:"spec,omitempty"`
Status common.ScalerStatus `json:"status,omitempty"`
}
Scaler is the Schema for the scalers API
func (*Scaler) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scaler.
func (*Scaler) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Scaler) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScalerList ¶
type ScalerList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Scaler `json:"items"`
}
ScalerList contains a list of Scaler
func (*ScalerList) DeepCopy ¶
func (in *ScalerList) DeepCopy() *ScalerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScalerList.
func (*ScalerList) DeepCopyInto ¶
func (in *ScalerList) DeepCopyInto(out *ScalerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ScalerList) DeepCopyObject ¶
func (in *ScalerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScalerSpec ¶
type ScalerSpec struct {
// dry-run mode
DryRun bool `json:"dryRun,omitempty"`
// Time period to scale
Periods []*common.ScalerPeriod `json:"periods"`
// Resources
// Namespaces
Namespaces []string `json:"namespaces,omitempty"`
// Exclude namespaces from downscaling
ExcludeNamespaces []string `json:"excludeNamespaces,omitempty"`
// Resources
Resources []string `json:"resources,omitempty"`
// Exclude resources from downscaling
ExcludeResources []string `json:"excludeResources,omitempty"`
// Labels selectors
LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"`
// Deployment time annotation
DeploymentTimeAnnotation string `json:"deploymentTimeAnnotation,omitempty"`
// Disable events
DisableEvents bool `json:"disableEvents,omitempty"`
}
ScalerSpec defines the desired state of Scaler
func (*ScalerSpec) DeepCopy ¶
func (in *ScalerSpec) DeepCopy() *ScalerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScalerSpec.
func (*ScalerSpec) DeepCopyInto ¶
func (in *ScalerSpec) DeepCopyInto(out *ScalerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.