tortoise

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 18 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, recorder record.EventRecorder, rangeOfMinMaxReplicasRecommendationHour int, timeZone string, tortoiseUpdateInterval time.Duration, minMaxReplicasRoutine string) (*Service, error)

func (*Service) AddFinalizer added in v0.0.20

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

func (*Service) GetTortoise

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

func (*Service) RecordReconciliationFailure added in v0.0.33

func (s *Service) RecordReconciliationFailure(t *v1beta1.Tortoise, err error, now time.Time) *v1beta1.Tortoise

func (*Service) RemoveFinalizer added in v0.0.20

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

func (*Service) ShouldReconcileTortoiseNow

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

func (*Service) UpdateTortoisePhase

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

func (*Service) UpdateTortoiseStatus

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

func (*Service) UpdateUpperRecommendation

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

Jump to

Keyboard shortcuts

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