pod

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModifyPodSpecResourceOption added in v0.10.0

type ModifyPodSpecResourceOption string
var (
	NoScaleDown ModifyPodSpecResourceOption = "NoScaleDown"
)

type Service

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

func New

func New(
	resourceLimitMultiplier map[string]int64,
	minimumCPULimit string,
	cf controllerfetcher.ControllerFetcher,
	featureFlags []features.FeatureFlag,
) (*Service, error)

func (*Service) GetDeploymentForPod added in v0.7.2

func (s *Service) GetDeploymentForPod(pod *v1.Pod) (string, error)

func (*Service) ModifyPodSpecResource added in v0.10.0

func (s *Service) ModifyPodSpecResource(podSpec *v1.PodSpec, t *v1beta3.Tortoise, opts ...ModifyPodSpecResourceOption)

func (*Service) ModifyPodTemplateResource added in v0.10.0

func (s *Service) ModifyPodTemplateResource(podTemplate *v1.PodTemplateSpec, t *v1beta3.Tortoise, opts ...ModifyPodSpecResourceOption)

Jump to

Keyboard shortcuts

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