etcdsnapshot

package
v0.0.0-...-1338e51 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ProvisioningSteveResouceType = "provisioning.cattle.io.cluster"
	SnapshotSteveResourceType    = "rke.cattle.io.etcdsnapshot"
	SnapshotClusterNameLabel     = "rke.cattle.io/cluster-name"
)

Variables

This section is empty.

Functions

func CreateRKE1Snapshot

func CreateRKE1Snapshot(client *rancher.Client, clusterName string) ([]management.EtcdBackup, error)

CreateRKE1Snapshot is a helper function to create a snapshot on an RKE1 cluster. Returns error if any.

func CreateRKE2K3SSnapshot

func CreateRKE2K3SSnapshot(client *rancher.Client, clusterName string) ([]rancherv1.SteveAPIObject, error)

CreateRKE2K3SSnapshot is a helper function to create a snapshot on an RKE2 or k3s cluster. returns the list of snapshots and an error, if any.

func RestoreRKE1Snapshot

func RestoreRKE1Snapshot(client *rancher.Client, clusterName string, snapshotRestore *management.RestoreFromEtcdBackupInput) error

RestoreRKE1Snapshot is a helper function to restore a snapshot on an RKE1 cluster. Returns error if any.

func RestoreRKE2K3SSnapshot

func RestoreRKE2K3SSnapshot(client *rancher.Client, snapshotRestore *rkev1.ETCDSnapshotRestore, clusterName string) error

RestoreRKE2K3SSnapshot is a helper function to restore a snapshot on an RKE2 or k3s cluster. Returns error if any.

Types

This section is empty.

Jump to

Keyboard shortcuts

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