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)
Click to show internal directories.
Click to hide internal directories.