scheduler

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskVolumeSchedulerPlugin

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

DiskVolumeSchedulerPlugin implement the Scheduler interface defined in github.com/hwameistor/scheduler/pkg/scheduler/scheduler.go: Scheduler

func (*DiskVolumeSchedulerPlugin) CSIDriverName

func (s *DiskVolumeSchedulerPlugin) CSIDriverName() string

func (*DiskVolumeSchedulerPlugin) Filter

func (s *DiskVolumeSchedulerPlugin) Filter(boundVolumes []string, pendingVolumes []*v1.PersistentVolumeClaim, node *v1.Node) (bool, error)

Filter whether the node meets the storage requirements of pod runtime. The following two types of situations need to be met at the same time: 1. If the pod uses a created volume, we need to ensure that the volume is located at the scheduled node. 2. If the pod uses a pending volume, we need to ensure that the scheduled node can meet the requirements of the volume.

type StorageClassParams

type StorageClassParams struct {
	DiskType string `json:"diskType"`
}

Jump to

Keyboard shortcuts

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