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 NewDiskVolumeSchedulerPlugin ¶
func NewDiskVolumeSchedulerPlugin(scLister storagev1lister.StorageClassLister) *DiskVolumeSchedulerPlugin
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"`
}
Click to show internal directories.
Click to hide internal directories.