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