Documentation ¶
Index ¶
Constants ¶
View Source
const (
DesiredAccessModeAnnotation = baseAnnotation + "-destinationaccessmode"
)
View Source
const IsDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class"
IsDefaultStorageClassAnnotation - this is also exported by https://github.com/kubernetes/kubernetes/blob/v1.21.3/pkg/apis/storage/v1/util/helpers.go#L25 but that would require adding the k8s import overrides to our go.mod
Variables ¶
This section is empty.
Functions ¶
func GetDestAccessModes ¶ added in v0.10.0
func GetDestAccessModes(srcPVC corev1.PersistentVolumeClaim) ([]corev1.PersistentVolumeAccessMode, error)
Types ¶
type LineReader ¶ added in v0.8.0
LineReader is a helper so we can easily implement tests using concrete implementations. This is implemented by bufio.Reader type and that is the type we are targeting here.
type Options ¶ added in v0.4.0
type Options struct { SourceSCName string DestSCName string RsyncImage string RsyncFlags []string Namespace string SetDefaults bool VerboseCopy bool SkipSourceValidation bool PodReadyTimeout time.Duration DeletePVTimeout time.Duration }
Options is the set of options that should be provided to Migrate
Click to show internal directories.
Click to hide internal directories.