vpa

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const TortoiseMonitorVPANamePrefix = "tortoise-monitor-"
View Source
const TortoiseUpdaterVPANamePrefix = "tortoise-updater-"
View Source
const TortoiseVPARecommenderName = "tortoise-controller"

Variables

This section is empty.

Functions

func SetAllVerticalContainerResourcePhaseWorking added in v0.1.3

func SetAllVerticalContainerResourcePhaseWorking(tortoise *autoscalingv1beta3.Tortoise, now time.Time) *autoscalingv1beta3.Tortoise

func TortoiseMonitorVPAName

func TortoiseMonitorVPAName(tortoiseName string) string

func TortoiseUpdaterVPAName

func TortoiseUpdaterVPAName(tortoiseName string) string

Types

type Service added in v0.0.5

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(c *rest.Config, recorder record.EventRecorder) (*Service, error)

func (*Service) CreateTortoiseMonitorVPA added in v0.0.5

func (c *Service) CreateTortoiseMonitorVPA(ctx context.Context, tortoise *autoscalingv1beta3.Tortoise) (*v1.VerticalPodAutoscaler, *autoscalingv1beta3.Tortoise, error)

func (*Service) CreateTortoiseUpdaterVPA added in v0.0.5

func (c *Service) CreateTortoiseUpdaterVPA(ctx context.Context, tortoise *autoscalingv1beta3.Tortoise) (*v1.VerticalPodAutoscaler, *autoscalingv1beta3.Tortoise, error)

func (*Service) DeleteTortoiseMonitorVPA added in v0.0.20

func (c *Service) DeleteTortoiseMonitorVPA(ctx context.Context, tortoise *autoscalingv1beta3.Tortoise) error

func (*Service) DeleteTortoiseUpdaterVPA added in v0.0.20

func (c *Service) DeleteTortoiseUpdaterVPA(ctx context.Context, tortoise *autoscalingv1beta3.Tortoise) error

func (*Service) GetTortoiseMonitorVPA added in v0.0.5

func (c *Service) GetTortoiseMonitorVPA(ctx context.Context, tortoise *autoscalingv1beta3.Tortoise) (*v1.VerticalPodAutoscaler, bool, error)

func (*Service) GetTortoiseUpdaterVPA added in v0.0.5

func (c *Service) GetTortoiseUpdaterVPA(ctx context.Context, tortoise *autoscalingv1beta3.Tortoise) (*v1.VerticalPodAutoscaler, error)

func (*Service) UpdateVPAFromTortoiseRecommendation added in v0.0.5

func (c *Service) UpdateVPAFromTortoiseRecommendation(ctx context.Context, tortoise *autoscalingv1beta3.Tortoise) (*v1.VerticalPodAutoscaler, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL