package
24.3.4+incompatible
Repository: https://github.com/libopenstorage/stork.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
CreateVolumeSnapshotSchedulePatch will return the patch between two volumesnapshot schedule objects.
No description provided by the author
ExcludeListAFromListB takes 2 slices of strings as input and returns subset of B which is disjoint from A.
GetAdminNamespace we fetch the value of adminNamespace from the stork-controller-cm created in kube-system namespace.
GetAppUidGid - Get the UID/GID of the application pod which has psa enforcement in its namespace using the PVC.
No description provided by the author
Get ObjectDetails returns name, namespace, kind of the given object.
get Pod from PVC details.
GetPodUserId: Get the UID/GID of the application pod which is using the PVC for which backup is triggered.
Returns namespaces in which Portworx is deployed.
GetRestorePvcSizePercentage - get the percentage of size that need to increased during the kdmp restore PVC creation.
GetShortUID returns the first part of the UID.
GetSizeOfObject - Gets the in-memory size of a object It may include the golang runtime headers related to GC If the structure object contains unexported field, then encoder will fail.
No description provided by the author
GetStorageClassNameForPVC - Get the storageClass name from the PVC spec.
GetTrimmedGroupName - get the trimmed group name Usually the groups of names of CRDs that belongs to the common operator have same group name.
Get uid gid from application backup cr.
No description provided by the author
GetValidLabel - will validate the label to make sure the length is less 63 and contains valid label format.
No description provided by the author
IsSubList returns true if the first slice is sublist of the second slice.
ParseKeyValueList parses a list of key=values string into a map.
ParseRancherProjectMapping - maps the target projectId to the source projectId.
ReorganizeLargeResourceError - Check the error message and if large resource error found, reorganize the error message and return true and error.
# Constants
ApplicationBackupCRNameKey - key name to store the applicationbackup CR name with KDMP annotation prefix.
ApplicationBackupCRUIDKey - key name to store the applicationbackup CR UID with KDMP annotation prefix.
ApplicationRestoreCRNameKey - key name to store the applicationrestore CR name with KDMP annotation prefix.
ApplicationRestoreCRUIDKey - key name to store the applicationrestore CR UID with KDMP annotation prefix.
BackupLocationKind CR kind.
BackupObjectNameKey - annotation key value for backup object name with KDMP annotation prefix.
BackupObjectUIDKey - annotation key value for backup object UID with KDMP annotation prefix.
CattlePrefix is the prefix to all Rancher related annotations and labels.
CattleProjectPrefix is the prefix used in all Rancher project related annotations and labels.
KdmpAnnotationPrefix - KDMP annotation prefix.
PrefixBackup - prefix string that will be used for the kdmp backup job.
PrefixNFSBackup prefix string that will be used for the nfs backup job.
PrefixNFSRestorePVC prefix string that will be used for pvc creation during nfs vol restore.
PrefixRestore prefix string that will be used for the kdmp restore job.
PrefixVMRestoreIncludeResourceMap prefix string that will be used for the kdmp restore job for VM includeresource map.
No description provided by the author
No description provided by the author
PxbackupAnnotationCreateByKey - annotation key name to indicate whether the CR was created by px-backup or stork.
PxbackupAnnotationCreateByValue - annotation key value for create-by key for px-backup.
PxbackupAnnotationPrefix - px-backup annotation prefix.
PxbackupAnnotationSkipdriverKey - annotation key name to skip backup for this specific driver.
PxbackupObjectNameKey - annotation key name for backup object name with px-backup prefix.
PxbackupObjectUIDKey -annotation key name for backup object UID with px-backup prefix.
PXIncrementalCountAnnotation is the annotation used to set cloud backup incremental count for volume.
PXServiceName is the name of the portworx service in kubernetes.
QuitRestoreCrTimestampUpdate is sent in the channel to informs the go routine to stop any further update.
RestoreCrChannelBufferSize is the count of maximum signals it can hold in restore CR update related channel.
RestoreObjectNameKey - key name to store the restore object name with KDMP annotation prefix.
RestoreObjectUIDKey - key name to store the restore object UID with KDMP annotation prefix.
SkipResourceAnnotation - annotation value to skip resource during resource collector.
sleep interval for restore time stamp update go-routine to check channel for any data.
StorkAPIVersion API version.
duration in which the backup CR to be updated with timestamp.
duration in which the restore CR to be updated for resource Count progress.
duration in which the restore CR to be updated with timestamp.
undefined UID or GID.
UpdateRestoreCrTimestampInApplyResourcePath is sent in channel to signify go routine to update the timestamp.
UpdateRestoreCrTimestampInDeleteResourcePath is sent in channel to signify go routine to update the timestamp.
UpdateRestoreCrTimestampInPrepareResourcePath is sent in channel to signify go routine to update the timestamp.
No description provided by the author
# Variables
Map of ignored namespace to be backed up for faster lookout.