vpa

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

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

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) DeleteTortoiseMonitorVPA added in v0.0.20

func (c *Service) DeleteTortoiseMonitorVPA(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) UpdateVPAContainerResourcePolicy added in v0.3.2

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

UpdateVPAContainerResourcePolicy is update VPA to have appropriate container policies based on tortoises' resource policy.

Jump to

Keyboard shortcuts

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