selection

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExpirationTTL   = 5 * time.Minute
	CleanupInterval = 1 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller for the resource

func NewController

func NewController(kubeClient client.Client, provisioners *provisioning.Controller) *Controller

NewController constructs a controller instance

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

Reconcile the resource

func (*Controller) Register

func (c *Controller) Register(_ context.Context, m manager.Manager) error

type Preferences

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

func NewPreferences

func NewPreferences() *Preferences

func (*Preferences) Relax

func (p *Preferences) Relax(ctx context.Context, pod *v1.Pod)

Relax removes soft preferences from pod to enable scheduling if the cloud provider's capacity is constrained. For example, this can be leveraged to prefer a specific zone, but relax the preferences if the pod cannot be scheduled to that zone. Preferences are removed iteratively until only hard constraints remain. Pods relaxation is reset (forgotten) after 5 minutes.

type VolumeTopology added in v0.5.4

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

func NewVolumeTopology added in v0.5.4

func NewVolumeTopology(kubeClient client.Client) *VolumeTopology

func (*VolumeTopology) Inject added in v0.5.4

func (v *VolumeTopology) Inject(ctx context.Context, pod *v1.Pod) error

Jump to

Keyboard shortcuts

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