tortoise

package
v0.0.27 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(c client.Client, rangeOfMinMaxReplicasRecommendationHour int, timeZone string, tortoiseUpdateInterval time.Duration) (*Service, error)

func (*Service) AddFinalizer added in v0.0.20

func (s *Service) AddFinalizer(ctx context.Context, tortoise *v1alpha1.Tortoise) error

func (*Service) GetTortoise

func (s *Service) GetTortoise(ctx context.Context, namespacedName types.NamespacedName) (*v1alpha1.Tortoise, error)

func (*Service) RemoveFinalizer added in v0.0.20

func (s *Service) RemoveFinalizer(ctx context.Context, tortoise *v1alpha1.Tortoise) error

func (*Service) ShouldReconcileTortoiseNow

func (s *Service) ShouldReconcileTortoiseNow(tortoise *v1alpha1.Tortoise, now time.Time) (bool, time.Duration)

func (*Service) UpdateTortoisePhase

func (s *Service) UpdateTortoisePhase(tortoise *v1alpha1.Tortoise, dm *appv1.Deployment) *v1alpha1.Tortoise

func (*Service) UpdateTortoiseStatus

func (s *Service) UpdateTortoiseStatus(ctx context.Context, originalTortoise *v1alpha1.Tortoise, now time.Time) (*v1alpha1.Tortoise, error)

func (*Service) UpdateUpperRecommendation

func (s *Service) UpdateUpperRecommendation(tortoise *v1alpha1.Tortoise, vpa *v1.VerticalPodAutoscaler) *v1alpha1.Tortoise

Jump to

Keyboard shortcuts

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