Skip to content

Kubernetes CRD: snapshot.storage.k8s.io#

"Volume snapshots provide Kubernetes users with a standardized way to copy a volume's contents at a particular point in time without creating an entirely new volume. This functionality enables, for example, database administrators to backup databases before performing edit or delete modifications." (kubernetes.io)

Kubernetes' API objects VolumeSnapshot, VolumeSnapshotContent, and VolumeSnapshotClass aren't part of the core Kubernetes API, but are made available by the project as CRDs. Use this module to validate that manifests sent to a Kubernetes cluster's Container Storage Interface controller are structurally sound before deploying them.

This module contains multiple packages, each dedicated to different kinds of components that the storage controller handles. To use them, add import statements for the appropriate components to your CUE:

import (
    snapshot "cue.dev/x/crd/k8s.io/storage/snapshot/v1"
    groupsnapshot "cue.dev/x/crd/k8s.io/storage/groupsnapshot/v1beta1"
)

The Central Registry's documentation lists the full set of packages and CRD kinds that can be validated.

Learn more with: