package
0.10.0
Repository: https://github.com/backube/volsync.git
Documentation: pkg.go.dev

# Functions

Ensures that all labels in the provided map are present and returns True if an update was made.
Ensures that a given key/value label is present and returns True if an update was made.
Determine the proper affinity to apply based on the current users of a PVC.
No description provided by the author
Will append the MoverDebug Env var if the volsyncv1alpha1.EnableDebugMoverAnnotation annotation is set on the corresponding ReplicationSource or Destination.
No description provided by the author
Append k/v from the secret if they start with RCLONE_.
CleanupObjects deletes all objects that have been marked.
No description provided by the author
No description provided by the author
If an update causes an immutable error, delete the object and return an error (or potentially an error from the delete if the delete fails).
No description provided by the author
Appies lineFilter to each line.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Attempts to get the newest successful pod when jobFailed==false Attempts to get the newest failed pod (or newest running pod if no failed pods) if jobFailed==true.
No description provided by the author
GetServiceAddress Returns the address of the given service as a string.
No description provided by the author
No description provided by the author
No description provided by the author
Check if error is due to the CRD not being present (API kind/group not available) This has changed recently in controller-runtime v0.15.0, see: https://github.com/kubernetes-sigs/controller-runtime/pull/2116.
No description provided by the author
No description provided by the author
Returns True if the object contains a label indicating that it was created by VolSync.
No description provided by the author
No description provided by the author
No description provided by the author
MarkForCleanup marks the provided "obj" to be deleted at the end of the synchronization iteration.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
reconcileBatch steps through a list of reconcile functions until one returns false or an error.
No description provided by the author
Removes the given key from the object's labels and returns True if an update was made.
Removes the "created by Volsync" label.
No description provided by the author
No description provided by the author
No description provided by the author
Returns true if the pvc was updated.
Returns true if the pvc was updated.
Returns true if the pvc was updated.
Returns true if the pvc was updated.
Returns true if the pvc was updated.
Sets a label on the object to indicate it was created by VolSync.
No description provided by the author
UnmarkForCleanup removes any previously applied cleanup label.
No description provided by the author
Updates mover status to failed and puts the errMessage as the logs.
No description provided by the author
No description provided by the author
Updates to set the securityContext, podLabels on mover pod in the spec and resourceRequirements on the mover containers based on what is set in the MoverConfig.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
#nosec G101 - gosec thinks this is a credential.
No description provided by the author
Define the error messages to be returned by VolSync.
Env var - Set to "true" to log all lines (up to MOVER_LOG_MAX_LINES) of mover logs.
Env var - max bytes we will log into the status log.
Env var - max lines we will tail from a mover pod to process logs Set to -1 to tail all lines since the mover pod start.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

SCCName is the name of the SCC to use for the mover Jobs.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

CustomCAObject will generate the appropriate volumesource for attaching to a podspec from a source customca secret or configmap.
No description provided by the author
No description provided by the author

# Type aliases

reconcileFunc is a function that partially reconciles an object.