v1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the scheduledscaling v1 API group +kubebuilder:object:generate=true +groupName=scheduledscaling.int128.github.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "scheduledscaling.int128.github.io", Version: "v1"}

	// 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 DailyRule

type DailyRule struct {
	// Time format in 00:00:00.
	// If EndTime < StartTime, it treats the EndTime as the next day.
	StartTime string `json:"startTime,omitempty"`
	EndTime   string `json:"endTime,omitempty"`
}

DailyRule represents a rule to apply everyday.

func (*DailyRule) DeepCopy

func (in *DailyRule) DeepCopy() *DailyRule

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

func (*DailyRule) DeepCopyInto

func (in *DailyRule) DeepCopyInto(out *DailyRule)

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

type ScaleRule

type ScaleRule struct {
	ScaleSpec ScaleSpec `json:"spec,omitempty"`
	// Timezone, default to UTC.
	// +optional
	Timezone string `json:"timezone,omitempty"`
	// +optional
	Daily *DailyRule `json:"daily,omitempty"`
}

ScaleRule represents a rule of scaling schedule.

func (*ScaleRule) DeepCopy

func (in *ScaleRule) DeepCopy() *ScaleRule

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

func (*ScaleRule) DeepCopyInto

func (in *ScaleRule) DeepCopyInto(out *ScaleRule)

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

type ScaleSpec

type ScaleSpec struct {
	Replicas int32 `json:"replicas,omitempty"`
}

ScaleSpec represents the desired state to scale the resource.

func (*ScaleSpec) DeepCopy

func (in *ScaleSpec) DeepCopy() *ScaleSpec

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

func (*ScaleSpec) DeepCopyInto

func (in *ScaleSpec) DeepCopyInto(out *ScaleSpec)

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

type ScaleTarget

type ScaleTarget struct {
	// +optional
	Selectors map[string]string `json:"selectors,omitempty"`
}

ScaleTarget represents the resource to scale. For now only Deployment is supported.

func (*ScaleTarget) DeepCopy

func (in *ScaleTarget) DeepCopy() *ScaleTarget

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

func (*ScaleTarget) DeepCopyInto

func (in *ScaleTarget) DeepCopyInto(out *ScaleTarget)

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

type ScheduledPodScaler

type ScheduledPodScaler struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ScheduledPodScalerSpec   `json:"spec,omitempty"`
	Status ScheduledPodScalerStatus `json:"status,omitempty"`
}

ScheduledPodScaler is the Schema for the scheduledpodscalers API

func (*ScheduledPodScaler) DeepCopy

func (in *ScheduledPodScaler) DeepCopy() *ScheduledPodScaler

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

func (*ScheduledPodScaler) DeepCopyInto

func (in *ScheduledPodScaler) DeepCopyInto(out *ScheduledPodScaler)

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

func (*ScheduledPodScaler) DeepCopyObject

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

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

type ScheduledPodScalerList

type ScheduledPodScalerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ScheduledPodScaler `json:"items"`
}

ScheduledPodScalerList contains a list of ScheduledPodScaler

func (*ScheduledPodScalerList) DeepCopy

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

func (*ScheduledPodScalerList) DeepCopyInto

func (in *ScheduledPodScalerList) DeepCopyInto(out *ScheduledPodScalerList)

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

func (*ScheduledPodScalerList) DeepCopyObject

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

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

type ScheduledPodScalerSpec

type ScheduledPodScalerSpec struct {
	ScaleTarget      ScaleTarget `json:"scaleTarget,omitempty"`
	ScaleRules       []ScaleRule `json:"schedule,omitempty"`
	DefaultScaleSpec ScaleSpec   `json:"default,omitempty"`
}

ScheduledPodScalerSpec defines the desired state of ScheduledPodScaler

func (*ScheduledPodScalerSpec) DeepCopy

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

func (*ScheduledPodScalerSpec) DeepCopyInto

func (in *ScheduledPodScalerSpec) DeepCopyInto(out *ScheduledPodScalerSpec)

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

type ScheduledPodScalerStatus

type ScheduledPodScalerStatus struct {
	NextReconcileTime string `json:"nextReconcileTime,omitempty"`
}

ScheduledPodScalerStatus defines the observed state of ScheduledPodScaler

func (*ScheduledPodScalerStatus) DeepCopy

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

func (*ScheduledPodScalerStatus) DeepCopyInto

func (in *ScheduledPodScalerStatus) DeepCopyInto(out *ScheduledPodScalerStatus)

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