Shared Go library for Kubernetes DRA (Dynamic Resource Allocation) drivers.
api/checkpoint: versioned kubelet plugin checkpoint API: kindCheckpoint, versionv1, in an API group the driver chooses (for examplecheckpoint.internal.example.com). A common core (claims, prepared devices, CDI container edits, soft/hard partitions, node partition modes) plus optional vendor sections.checkpoint:Storereads 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).
See CONTRIBUTING.md. Licensed under Apache-2.0.