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: 16 Imported by: 0

Documentation

Overview

+groupName=autoscalingplans.aws.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: autoscalingplans.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 ScalingPlan

type ScalingPlan struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ScalingPlanSpec   `json:"spec,omitempty"`
	Status            ScalingPlanStatus `json:"status,omitempty"`
}

func (*ScalingPlan) DeepCopy

func (in *ScalingPlan) DeepCopy() *ScalingPlan

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

func (*ScalingPlan) DeepCopyInto

func (in *ScalingPlan) DeepCopyInto(out *ScalingPlan)

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

func (*ScalingPlan) DeepCopyObject

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

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

func (*ScalingPlan) SetupWebhookWithManager

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

func (*ScalingPlan) ValidateCreate

func (r *ScalingPlan) ValidateCreate() error

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

func (*ScalingPlan) ValidateDelete

func (r *ScalingPlan) ValidateDelete() error

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

func (*ScalingPlan) ValidateUpdate

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

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

type ScalingPlanList

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

ScalingPlanList is a list of ScalingPlans

func (*ScalingPlanList) DeepCopy

func (in *ScalingPlanList) DeepCopy() *ScalingPlanList

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

func (*ScalingPlanList) DeepCopyInto

func (in *ScalingPlanList) DeepCopyInto(out *ScalingPlanList)

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

func (*ScalingPlanList) DeepCopyObject

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

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

type ScalingPlanSpec

type ScalingPlanSpec struct {
	State *ScalingPlanSpecResource `json:"state,omitempty" tf:"-"`

	Resource ScalingPlanSpecResource `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 (*ScalingPlanSpec) DeepCopy

func (in *ScalingPlanSpec) DeepCopy() *ScalingPlanSpec

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

func (*ScalingPlanSpec) DeepCopyInto

func (in *ScalingPlanSpec) DeepCopyInto(out *ScalingPlanSpec)

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

type ScalingPlanSpecApplicationSource

type ScalingPlanSpecApplicationSource struct {
	// +optional
	CloudformationStackArn *string `json:"cloudformationStackArn,omitempty" tf:"cloudformation_stack_arn"`
	// +optional
	// +kubebuilder:validation:MaxItems=50
	TagFilter []ScalingPlanSpecApplicationSourceTagFilter `json:"tagFilter,omitempty" tf:"tag_filter"`
}

func (*ScalingPlanSpecApplicationSource) DeepCopy

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

func (*ScalingPlanSpecApplicationSource) DeepCopyInto

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

type ScalingPlanSpecApplicationSourceCodec

type ScalingPlanSpecApplicationSourceCodec struct {
}

+k8s:deepcopy-gen=false

func (ScalingPlanSpecApplicationSourceCodec) Decode

func (ScalingPlanSpecApplicationSourceCodec) Encode

func (ScalingPlanSpecApplicationSourceCodec) IsEmpty

type ScalingPlanSpecApplicationSourceTagFilter

type ScalingPlanSpecApplicationSourceTagFilter struct {
	Key *string `json:"key" tf:"key"`
	// +optional
	// +kubebuilder:validation:MaxItems=50
	Values []string `json:"values,omitempty" tf:"values"`
}

func (*ScalingPlanSpecApplicationSourceTagFilter) DeepCopy

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

func (*ScalingPlanSpecApplicationSourceTagFilter) DeepCopyInto

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

type ScalingPlanSpecResource

type ScalingPlanSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	ApplicationSource *ScalingPlanSpecApplicationSource `json:"applicationSource" tf:"application_source"`
	Name              *string                           `json:"name" tf:"name"`
	// +kubebuilder:validation:MinItems=1
	ScalingInstruction []ScalingPlanSpecScalingInstruction `json:"scalingInstruction" tf:"scaling_instruction"`
	// +optional
	ScalingPlanVersion *int64 `json:"scalingPlanVersion,omitempty" tf:"scaling_plan_version"`
}

func (*ScalingPlanSpecResource) DeepCopy

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

func (*ScalingPlanSpecResource) DeepCopyInto

func (in *ScalingPlanSpecResource) DeepCopyInto(out *ScalingPlanSpecResource)

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

type ScalingPlanSpecScalingInstruction

type ScalingPlanSpecScalingInstruction struct {
	// +optional
	CustomizedLoadMetricSpecification *ScalingPlanSpecScalingInstructionCustomizedLoadMetricSpecification `json:"customizedLoadMetricSpecification,omitempty" tf:"customized_load_metric_specification"`
	// +optional
	DisableDynamicScaling *bool  `json:"disableDynamicScaling,omitempty" tf:"disable_dynamic_scaling"`
	MaxCapacity           *int64 `json:"maxCapacity" tf:"max_capacity"`
	MinCapacity           *int64 `json:"minCapacity" tf:"min_capacity"`
	// +optional
	PredefinedLoadMetricSpecification *ScalingPlanSpecScalingInstructionPredefinedLoadMetricSpecification `json:"predefinedLoadMetricSpecification,omitempty" tf:"predefined_load_metric_specification"`
	// +optional
	PredictiveScalingMaxCapacityBehavior *string `json:"predictiveScalingMaxCapacityBehavior,omitempty" tf:"predictive_scaling_max_capacity_behavior"`
	// +optional
	PredictiveScalingMaxCapacityBuffer *int64 `json:"predictiveScalingMaxCapacityBuffer,omitempty" tf:"predictive_scaling_max_capacity_buffer"`
	// +optional
	PredictiveScalingMode *string `json:"predictiveScalingMode,omitempty" tf:"predictive_scaling_mode"`
	ResourceID            *string `json:"resourceID" tf:"resource_id"`
	ScalableDimension     *string `json:"scalableDimension" tf:"scalable_dimension"`
	// +optional
	ScalingPolicyUpdateBehavior *string `json:"scalingPolicyUpdateBehavior,omitempty" tf:"scaling_policy_update_behavior"`
	// +optional
	ScheduledActionBufferTime *int64  `json:"scheduledActionBufferTime,omitempty" tf:"scheduled_action_buffer_time"`
	ServiceNamespace          *string `json:"serviceNamespace" tf:"service_namespace"`
	// +kubebuilder:validation:MaxItems=10
	// +kubebuilder:validation:MinItems=1
	TargetTrackingConfiguration []ScalingPlanSpecScalingInstructionTargetTrackingConfiguration `json:"targetTrackingConfiguration" tf:"target_tracking_configuration"`
}

func (*ScalingPlanSpecScalingInstruction) DeepCopy

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

func (*ScalingPlanSpecScalingInstruction) DeepCopyInto

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

type ScalingPlanSpecScalingInstructionCustomizedLoadMetricSpecification

type ScalingPlanSpecScalingInstructionCustomizedLoadMetricSpecification struct {
	// +optional
	Dimensions *map[string]string `json:"dimensions,omitempty" tf:"dimensions"`
	MetricName *string            `json:"metricName" tf:"metric_name"`
	Namespace  *string            `json:"namespace" tf:"namespace"`
	Statistic  *string            `json:"statistic" tf:"statistic"`
	// +optional
	Unit *string `json:"unit,omitempty" tf:"unit"`
}

func (*ScalingPlanSpecScalingInstructionCustomizedLoadMetricSpecification) DeepCopy

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

func (*ScalingPlanSpecScalingInstructionCustomizedLoadMetricSpecification) DeepCopyInto

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

type ScalingPlanSpecScalingInstructionCustomizedLoadMetricSpecificationCodec

type ScalingPlanSpecScalingInstructionCustomizedLoadMetricSpecificationCodec struct {
}

+k8s:deepcopy-gen=false

func (ScalingPlanSpecScalingInstructionCustomizedLoadMetricSpecificationCodec) Decode

func (ScalingPlanSpecScalingInstructionCustomizedLoadMetricSpecificationCodec) Encode

func (ScalingPlanSpecScalingInstructionCustomizedLoadMetricSpecificationCodec) IsEmpty

type ScalingPlanSpecScalingInstructionPredefinedLoadMetricSpecification

type ScalingPlanSpecScalingInstructionPredefinedLoadMetricSpecification struct {
	PredefinedLoadMetricType *string `json:"predefinedLoadMetricType" tf:"predefined_load_metric_type"`
	// +optional
	ResourceLabel *string `json:"resourceLabel,omitempty" tf:"resource_label"`
}

func (*ScalingPlanSpecScalingInstructionPredefinedLoadMetricSpecification) DeepCopy

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

func (*ScalingPlanSpecScalingInstructionPredefinedLoadMetricSpecification) DeepCopyInto

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

type ScalingPlanSpecScalingInstructionPredefinedLoadMetricSpecificationCodec

type ScalingPlanSpecScalingInstructionPredefinedLoadMetricSpecificationCodec struct {
}

+k8s:deepcopy-gen=false

func (ScalingPlanSpecScalingInstructionPredefinedLoadMetricSpecificationCodec) Decode

func (ScalingPlanSpecScalingInstructionPredefinedLoadMetricSpecificationCodec) Encode

func (ScalingPlanSpecScalingInstructionPredefinedLoadMetricSpecificationCodec) IsEmpty

type ScalingPlanSpecScalingInstructionTargetTrackingConfiguration

type ScalingPlanSpecScalingInstructionTargetTrackingConfiguration struct {
	// +optional
	CustomizedScalingMetricSpecification *ScalingPlanSpecScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification `json:"customizedScalingMetricSpecification,omitempty" tf:"customized_scaling_metric_specification"`
	// +optional
	DisableScaleIn *bool `json:"disableScaleIn,omitempty" tf:"disable_scale_in"`
	// +optional
	EstimatedInstanceWarmup *int64 `json:"estimatedInstanceWarmup,omitempty" tf:"estimated_instance_warmup"`
	// +optional
	PredefinedScalingMetricSpecification *ScalingPlanSpecScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification `json:"predefinedScalingMetricSpecification,omitempty" tf:"predefined_scaling_metric_specification"`
	// +optional
	ScaleInCooldown *int64 `json:"scaleInCooldown,omitempty" tf:"scale_in_cooldown"`
	// +optional
	ScaleOutCooldown *int64   `json:"scaleOutCooldown,omitempty" tf:"scale_out_cooldown"`
	TargetValue      *float64 `json:"targetValue" tf:"target_value"`
}

func (*ScalingPlanSpecScalingInstructionTargetTrackingConfiguration) DeepCopy

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

func (*ScalingPlanSpecScalingInstructionTargetTrackingConfiguration) DeepCopyInto

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

type ScalingPlanSpecScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification

type ScalingPlanSpecScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification struct {
	// +optional
	Dimensions *map[string]string `json:"dimensions,omitempty" tf:"dimensions"`
	MetricName *string            `json:"metricName" tf:"metric_name"`
	Namespace  *string            `json:"namespace" tf:"namespace"`
	Statistic  *string            `json:"statistic" tf:"statistic"`
	// +optional
	Unit *string `json:"unit,omitempty" tf:"unit"`
}

func (*ScalingPlanSpecScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification) DeepCopy

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

func (*ScalingPlanSpecScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification) DeepCopyInto

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

type ScalingPlanSpecScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationCodec

type ScalingPlanSpecScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationCodec struct {
}

+k8s:deepcopy-gen=false

func (ScalingPlanSpecScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationCodec) Decode

func (ScalingPlanSpecScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationCodec) Encode

func (ScalingPlanSpecScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationCodec) IsEmpty

type ScalingPlanSpecScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification

type ScalingPlanSpecScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification struct {
	PredefinedScalingMetricType *string `json:"predefinedScalingMetricType" tf:"predefined_scaling_metric_type"`
	// +optional
	ResourceLabel *string `json:"resourceLabel,omitempty" tf:"resource_label"`
}

func (*ScalingPlanSpecScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification) DeepCopy

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

func (*ScalingPlanSpecScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification) DeepCopyInto

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

type ScalingPlanSpecScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecificationCodec

type ScalingPlanSpecScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecificationCodec struct {
}

+k8s:deepcopy-gen=false

func (ScalingPlanSpecScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecificationCodec) Decode

func (ScalingPlanSpecScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecificationCodec) Encode

func (ScalingPlanSpecScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecificationCodec) IsEmpty

type ScalingPlanStatus

type ScalingPlanStatus 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 (*ScalingPlanStatus) DeepCopy

func (in *ScalingPlanStatus) DeepCopy() *ScalingPlanStatus

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

func (*ScalingPlanStatus) DeepCopyInto

func (in *ScalingPlanStatus) DeepCopyInto(out *ScalingPlanStatus)

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