mutators

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptionsFunc

type OptionsFunc func(*PodTemplateSpec)

func WithDefaultMemoryLimitRequestRatio

func WithDefaultMemoryLimitRequestRatio(ratio float64) OptionsFunc

func WithDryRun added in v0.1.2

func WithDryRun(dryRun bool) OptionsFunc

type PodTemplateSpec

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

func NewPodTemplateSpec

func NewPodTemplateSpec(opts ...OptionsFunc) *PodTemplateSpec

func (*PodTemplateSpec) Mutate

func (p *PodTemplateSpec) Mutate(ctx context.Context, inputPts corev1.PodTemplateSpec, limitRangeMemory *limitrange.Config) (corev1.PodTemplateSpec, error)

Jump to

Keyboard shortcuts

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