Skip to content
Project-HAMiPublic

About

Shared Go library for Kubernetes DRA drivers: versioned kubelet plugin checkpoint API and common partition model

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

dra-lib

Shared Go library for Kubernetes DRA (Dynamic Resource Allocation) drivers.

  • api/checkpoint: versioned kubelet plugin checkpoint API: kind Checkpoint, version v1, in an API group the driver chooses (for example checkpoint.internal.example.com). A common core (claims, prepared devices, CDI container edits, soft/hard partitions, node partition modes) plus optional vendor sections.
  • checkpoint: Store reads and atomically writes the checkpoint, refuses a checkpoint owned by another driver, and migrates the legacy kubelet checkpointmanager format (deprecated, will be removed in a future version).
store, err := checkpoint.NewStore(path, checkpoint.Options{
	Group:      "checkpoint.internal.example.com",
	DriverName: "gpu.example.com",
})
cp, err := store.Read()
err = store.Write(cp)

Depends on k8s.io/apimachinery, k8s.io/api and the CDI spec only, so drivers don't need k8s.io/kubernetes.

Releases are semver tags; see CHANGELOG.md. make generate regenerates the deepcopy code (make tools installs the generator).

Contributing

See CONTRIBUTING.md. Licensed under Apache-2.0.

About

Shared Go library for Kubernetes DRA drivers: versioned kubelet plugin checkpoint API and common partition model

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages