v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+groupName=budget.oci.kubeform.com

Index

Constants

This section is empty.

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: budget.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type AlertRule

type AlertRule struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AlertRuleSpec   `json:"spec,omitempty"`
	Status            AlertRuleStatus `json:"status,omitempty"`
}

func (*AlertRule) DeepCopy

func (in *AlertRule) DeepCopy() *AlertRule

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

func (*AlertRule) DeepCopyInto

func (in *AlertRule) DeepCopyInto(out *AlertRule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AlertRule) DeepCopyObject

func (in *AlertRule) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AlertRule) SetupWebhookWithManager

func (r *AlertRule) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*AlertRule) ValidateCreate

func (r *AlertRule) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*AlertRule) ValidateDelete

func (r *AlertRule) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*AlertRule) ValidateUpdate

func (r *AlertRule) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type AlertRuleList

type AlertRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of AlertRule CRD objects
	Items []AlertRule `json:"items,omitempty"`
}

AlertRuleList is a list of AlertRules

func (*AlertRuleList) DeepCopy

func (in *AlertRuleList) DeepCopy() *AlertRuleList

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

func (*AlertRuleList) DeepCopyInto

func (in *AlertRuleList) DeepCopyInto(out *AlertRuleList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AlertRuleList) DeepCopyObject

func (in *AlertRuleList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AlertRuleSpec

type AlertRuleSpec struct {
	State *AlertRuleSpecResource `json:"state,omitempty" tf:"-"`

	Resource AlertRuleSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*AlertRuleSpec) DeepCopy

func (in *AlertRuleSpec) DeepCopy() *AlertRuleSpec

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

func (*AlertRuleSpec) DeepCopyInto

func (in *AlertRuleSpec) DeepCopyInto(out *AlertRuleSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AlertRuleSpecResource

type AlertRuleSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	BudgetID *string `json:"budgetID" tf:"budget_id"`
	// +optional
	DefinedTags map[string]string `json:"definedTags,omitempty" tf:"defined_tags"`
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// +optional
	DisplayName *string `json:"displayName,omitempty" tf:"display_name"`
	// +optional
	FreeformTags map[string]string `json:"freeformTags,omitempty" tf:"freeform_tags"`
	// +optional
	Message *string `json:"message,omitempty" tf:"message"`
	// +optional
	Recipients *string `json:"recipients,omitempty" tf:"recipients"`
	// +optional
	State         *string  `json:"state,omitempty" tf:"state"`
	Threshold     *float64 `json:"threshold" tf:"threshold"`
	ThresholdType *string  `json:"thresholdType" tf:"threshold_type"`
	// +optional
	TimeCreated *string `json:"timeCreated,omitempty" tf:"time_created"`
	// +optional
	TimeUpdated *string `json:"timeUpdated,omitempty" tf:"time_updated"`
	Type        *string `json:"type" tf:"type"`
	// +optional
	Version *int64 `json:"version,omitempty" tf:"version"`
}

func (*AlertRuleSpecResource) DeepCopy

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

func (*AlertRuleSpecResource) DeepCopyInto

func (in *AlertRuleSpecResource) DeepCopyInto(out *AlertRuleSpecResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AlertRuleStatus

type AlertRuleStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*AlertRuleStatus) DeepCopy

func (in *AlertRuleStatus) DeepCopy() *AlertRuleStatus

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

func (*AlertRuleStatus) DeepCopyInto

func (in *AlertRuleStatus) DeepCopyInto(out *AlertRuleStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Budget

type Budget struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              BudgetSpec   `json:"spec,omitempty"`
	Status            BudgetStatus `json:"status,omitempty"`
}

func (*Budget) DeepCopy

func (in *Budget) DeepCopy() *Budget

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

func (*Budget) DeepCopyInto

func (in *Budget) DeepCopyInto(out *Budget)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Budget) DeepCopyObject

func (in *Budget) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Budget) SetupWebhookWithManager

func (r *Budget) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Budget) ValidateCreate

func (r *Budget) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Budget) ValidateDelete

func (r *Budget) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Budget) ValidateUpdate

func (r *Budget) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type BudgetList

type BudgetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Budget CRD objects
	Items []Budget `json:"items,omitempty"`
}

BudgetList is a list of Budgets

func (*BudgetList) DeepCopy

func (in *BudgetList) DeepCopy() *BudgetList

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

func (*BudgetList) DeepCopyInto

func (in *BudgetList) DeepCopyInto(out *BudgetList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BudgetList) DeepCopyObject

func (in *BudgetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BudgetSpec

type BudgetSpec struct {
	State *BudgetSpecResource `json:"state,omitempty" tf:"-"`

	Resource BudgetSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*BudgetSpec) DeepCopy

func (in *BudgetSpec) DeepCopy() *BudgetSpec

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

func (*BudgetSpec) DeepCopyInto

func (in *BudgetSpec) DeepCopyInto(out *BudgetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BudgetSpecResource

type BudgetSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// +optional
	ActualSpend *float64 `json:"actualSpend,omitempty" tf:"actual_spend"`
	// +optional
	AlertRuleCount *int64 `json:"alertRuleCount,omitempty" tf:"alert_rule_count"`
	Amount         *int64 `json:"amount" tf:"amount"`
	// +optional
	BudgetProcessingPeriodStartOffset *int64  `json:"budgetProcessingPeriodStartOffset,omitempty" tf:"budget_processing_period_start_offset"`
	CompartmentID                     *string `json:"compartmentID" tf:"compartment_id"`
	// +optional
	DefinedTags map[string]string `json:"definedTags,omitempty" tf:"defined_tags"`
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// +optional
	DisplayName *string `json:"displayName,omitempty" tf:"display_name"`
	// +optional
	ForecastedSpend *float64 `json:"forecastedSpend,omitempty" tf:"forecasted_spend"`
	// +optional
	FreeformTags map[string]string `json:"freeformTags,omitempty" tf:"freeform_tags"`
	ResetPeriod  *string           `json:"resetPeriod" tf:"reset_period"`
	// +optional
	State *string `json:"state,omitempty" tf:"state"`
	// +optional
	// Deprecated
	TargetCompartmentID *string `json:"targetCompartmentID,omitempty" tf:"target_compartment_id"`
	// +optional
	TargetType *string `json:"targetType,omitempty" tf:"target_type"`
	// +optional
	Targets []string `json:"targets,omitempty" tf:"targets"`
	// +optional
	TimeCreated *string `json:"timeCreated,omitempty" tf:"time_created"`
	// +optional
	TimeSpendComputed *string `json:"timeSpendComputed,omitempty" tf:"time_spend_computed"`
	// +optional
	TimeUpdated *string `json:"timeUpdated,omitempty" tf:"time_updated"`
	// +optional
	Version *int64 `json:"version,omitempty" tf:"version"`
}

func (*BudgetSpecResource) DeepCopy

func (in *BudgetSpecResource) DeepCopy() *BudgetSpecResource

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

func (*BudgetSpecResource) DeepCopyInto

func (in *BudgetSpecResource) DeepCopyInto(out *BudgetSpecResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BudgetStatus

type BudgetStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*BudgetStatus) DeepCopy

func (in *BudgetStatus) DeepCopy() *BudgetStatus

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

func (*BudgetStatus) DeepCopyInto

func (in *BudgetStatus) DeepCopyInto(out *BudgetStatus)

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