adapter

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SchedulerHostTag tag
	SchedulerHostTag = "SCHEDULER_HOST"
)

Variables

View Source
var URLHost = "http://yoda-scheduler-extender-service:23000"

URLHost default value

Functions

func ExpandVolume added in v1.0.6

func ExpandVolume(pvcNameSpace, pvcName string, newSize int) error

ExpandVolume do volume capacity check

Types

type BindingInfo

type BindingInfo struct {
	// node is the name of selected node
	Node string `json:"node"`
	// path for mount point
	Disk string `json:"disk"`
	// VgName is the name of selected volume group
	VgName string `json:"vgName"`
	// Device is the name for raw block device: /dev/vdb
	Device string `json:"device"`
	// [lvm] or [disk] or [device] or [quota]
	VolumeType string `json:"volumeType"`

	// PersistentVolumeClaim is the metakey for pvc: {namespace}/{name}
	PersistentVolumeClaim string `json:"persistentVolumeClaim"`
}

BindingInfo represents the pvc and disk/lvm mapping

func ScheduleVolume

func ScheduleVolume(volumeType, pvcName, pvcNamespace, vgName, nodeID string) (*BindingInfo, error)

ScheduleVolume make request and get expect schedule topology

Jump to

Keyboard shortcuts

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