Documentation ¶
Index ¶
- func SetAllVerticalContainerResourcePhaseWorking(tortoise *autoscalingv1beta3.Tortoise, now time.Time) *autoscalingv1beta3.Tortoise
- func TortoiseMonitorVPAName(tortoiseName string) string
- func TortoiseUpdaterVPAName(tortoiseName string) string
- type Service
- func (c *Service) CreateTortoiseMonitorVPA(ctx context.Context, tortoise *autoscalingv1beta3.Tortoise) (*v1.VerticalPodAutoscaler, *autoscalingv1beta3.Tortoise, error)
- func (c *Service) CreateTortoiseUpdaterVPA(ctx context.Context, tortoise *autoscalingv1beta3.Tortoise) (*v1.VerticalPodAutoscaler, *autoscalingv1beta3.Tortoise, error)
- func (c *Service) DeleteTortoiseMonitorVPA(ctx context.Context, tortoise *autoscalingv1beta3.Tortoise) error
- func (c *Service) DeleteTortoiseUpdaterVPA(ctx context.Context, tortoise *autoscalingv1beta3.Tortoise) error
- func (c *Service) GetTortoiseMonitorVPA(ctx context.Context, tortoise *autoscalingv1beta3.Tortoise) (*v1.VerticalPodAutoscaler, bool, error)
- func (c *Service) GetTortoiseUpdaterVPA(ctx context.Context, tortoise *autoscalingv1beta3.Tortoise) (*v1.VerticalPodAutoscaler, error)
- func (c *Service) UpdateVPAContainerResourcePolicy(ctx context.Context, tortoise *autoscalingv1beta3.Tortoise, ...) (*v1.VerticalPodAutoscaler, error)
- func (c *Service) UpdateVPAFromTortoiseRecommendation(ctx context.Context, tortoise *autoscalingv1beta3.Tortoise, replica int32, ...) (*v1.VerticalPodAutoscaler, bool, error)
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 TortoiseUpdaterVPAName ¶
Types ¶
type Service ¶ added in v0.0.5
type Service struct {
// contains filtered or unexported fields
}
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 (*Service) DeleteTortoiseUpdaterVPA ¶ added in v0.0.20
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) 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 VPAs to have appropriate container policies based on tortoises' resource policy.
func (*Service) UpdateVPAFromTortoiseRecommendation ¶ added in v0.0.5
func (c *Service) UpdateVPAFromTortoiseRecommendation(ctx context.Context, tortoise *autoscalingv1beta3.Tortoise, replica int32, now time.Time) (*v1.VerticalPodAutoscaler, bool, error)
UpdateVPAFromTortoiseRecommendation updates VPA with the recommendation from Tortoise. In the second return value, it returns true if the Pods should be updated with new resources.
Click to show internal directories.
Click to hide internal directories.