kwok

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeSelectorKey   = "kwok.x-k8s.io/node"
	NodeSelectorValue = "fake"
)

Variables

This section is empty.

Functions

func MarshalNodeManifest

func MarshalNodeManifest(nodes []*corev1.Node) ([]byte, error)

func NodesFromModel

func NodesFromModel(model *models.Model, capacity Capacity) ([]*corev1.Node, error)

Types

type Capacity

type Capacity struct {
	CPU              string
	Memory           string
	Pods             string
	EphemeralStorage string
	GPUs             int
	GPUResourceName  string
}

func DefaultCapacity

func DefaultCapacity() Capacity

func (Capacity) ResourceList

func (c Capacity) ResourceList() (corev1.ResourceList, error)

Jump to

Keyboard shortcuts

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