Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the sustainability v1alpha1 API group +kubebuilder:object:generate=true +groupName=sustainability.aeto.net
Index ¶
Constants ¶
const ( SavingsPolicyTerminating string = "Terminating" SavingsPolicyError string = "Error" )
const (
ConditionTypeSuspended string = "Suspended"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "sustainability.aeto.net", 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 SavingsPolicy ¶
type SavingsPolicy struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec SavingsPolicySpec `json:"spec,omitempty"`
Status SavingsPolicyStatus `json:"status,omitempty"`
}
SavingsPolicy is the Schema for the savingspolicies API
func (*SavingsPolicy) DeepCopy ¶
func (in *SavingsPolicy) DeepCopy() *SavingsPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SavingsPolicy.
func (*SavingsPolicy) DeepCopyInto ¶
func (in *SavingsPolicy) DeepCopyInto(out *SavingsPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SavingsPolicy) DeepCopyObject ¶
func (in *SavingsPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (SavingsPolicy) NamespacedName ¶ added in v0.2.3
func (sp SavingsPolicy) NamespacedName() types.NamespacedName
NamespacedName returns a namespaced name for the custom resource
type SavingsPolicyList ¶
type SavingsPolicyList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []SavingsPolicy `json:"items"`
}
SavingsPolicyList contains a list of SavingsPolicy
func (*SavingsPolicyList) DeepCopy ¶
func (in *SavingsPolicyList) DeepCopy() *SavingsPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SavingsPolicyList.
func (*SavingsPolicyList) DeepCopyInto ¶
func (in *SavingsPolicyList) DeepCopyInto(out *SavingsPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SavingsPolicyList) DeepCopyObject ¶
func (in *SavingsPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SavingsPolicySpec ¶
type SavingsPolicySpec struct {
// Suspended contains a list of day and time entries for when the SavingsPolicy is suspended.
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinItems=1
Suspended []string `json:"suspended"`
// Targets contains a list of kubenetes resource selectors that the SavingsPolicy applies to.
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinItems=1
Targets []SavingsPolicyTarget `json:"targets"`
}
SavingsPolicySpec defines the desired state of SavingsPolicy
func (*SavingsPolicySpec) DeepCopy ¶
func (in *SavingsPolicySpec) DeepCopy() *SavingsPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SavingsPolicySpec.
func (*SavingsPolicySpec) DeepCopyInto ¶
func (in *SavingsPolicySpec) DeepCopyInto(out *SavingsPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SavingsPolicyStatus ¶
type SavingsPolicyStatus struct {
// Status is the current status of the AWS ACM Certificate.
Status string `json:"status,omitempty"`
// Conditions represent the latest available observations of the ResourceSet state.
Conditions []metav1.Condition `json:"conditions"`
// ActiveDuration is the amount of time the SavingsPolicy has been active
ActiveDuration string `json:"activeDuration,omitempty"`
// SuspendedDuration is the amount of time the SavingsPolicy has been suspended
SuspendedDuration string `json:"suspendedDuration,omitempty"`
// Savings is the percent of time the SavingsPolicy has been active
Savings string `json:"savings,omitempty"`
}
SavingsPolicyStatus defines the observed state of SavingsPolicy
func (*SavingsPolicyStatus) DeepCopy ¶
func (in *SavingsPolicyStatus) DeepCopy() *SavingsPolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SavingsPolicyStatus.
func (*SavingsPolicyStatus) DeepCopyInto ¶
func (in *SavingsPolicyStatus) DeepCopyInto(out *SavingsPolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SavingsPolicyTarget ¶
type SavingsPolicyTarget struct {
// +kubebuilder:validation:Required
ApiVersion string `json:"apiVersion"`
// +kubebuilder:validation:Required
Kind string `json:"kind"`
// +kubebuilder:validation:Optional
Name string `json:"name,omitempty"`
// +kubebuilder:validation:Optional
Ignore bool `json:"ignore,omitempty"`
}
SavingsPolicyTarget defines the a target for a SavingsPolicy
func (*SavingsPolicyTarget) DeepCopy ¶
func (in *SavingsPolicyTarget) DeepCopy() *SavingsPolicyTarget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SavingsPolicyTarget.
func (*SavingsPolicyTarget) DeepCopyInto ¶
func (in *SavingsPolicyTarget) DeepCopyInto(out *SavingsPolicyTarget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.