Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupState ¶
func CleanupState(ctx context.Context, log logging.Logger, kubeClient client.Client, namespace string, deployItem lsv1alpha1.ObjectReference) error
CleanupState deletes all state secrets for a deployitem
func StateSecretListOptions ¶
func StateSecretListOptions(namespace string, deployItem lsv1alpha1.ObjectReference) []client.ListOption
StateSecretListOptions returns the list options for all state secrets of a deploy item
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
State handles the backup and restore of state of container deploy item.
func New ¶
func New(kubeClient client.Client, namespace string, deployItemKey lsv1alpha1.ObjectReference, statePath string) *State
New creates a new state instance.
func (*State) Backup ¶
Backup tars the content of the State directory and stores it in a secrets in the cluster.
Click to show internal directories.
Click to hide internal directories.