Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(options ...ResourceOption) corev1.ResourceRequirements
Types ¶
type ResourceOption ¶
type ResourceOption func(resources *corev1.ResourceRequirements)
func WithCPUMilli ¶
func WithCPUMilli(cpu int64) ResourceOption
WithCPUMilli sets cpu requests without limit to ensure optimal performance when possible
func WithMemoryMega ¶
func WithMemoryMega(memory int64) ResourceOption
WithMemoryMega sets memory limit and requests to ensure awailable memory
Click to show internal directories.
Click to hide internal directories.