Documentation
¶
Index ¶
- func CleanNamespace(ctx context.Context, r common.ReconcilerCommon, namespace string, ...) (bool, error)
- func GetAreControllersQuiesced(instance *ospdirectorv1beta1.OpenStackBackupRequest, ...) (bool, []client.Object)
- func GetAreResourcesRestored(backup *ospdirectorv1beta2.OpenStackBackup, ...) (bool, []client.Object)
- func GetCRLists(ctx context.Context, r common.ReconcilerCommon, namespace string) (ospdirectorv1beta2.CrsForBackup, error)
- func GetConfigMapList(ctx context.Context, r common.ReconcilerCommon, ...) (corev1.ConfigMapList, error)
- func GetSecretList(ctx context.Context, r common.ReconcilerCommon, ...) (corev1.SecretList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanNamespace ¶
func CleanNamespace( ctx context.Context, r common.ReconcilerCommon, namespace string, crLists ospdirectorv1beta2.CrsForBackup, cmList corev1.ConfigMapList, secretList corev1.SecretList, ) (bool, error)
CleanNamespace - deleted CRs, ConfigMaps and Secrets in this namespace
func GetAreControllersQuiesced ¶
func GetAreControllersQuiesced( instance *ospdirectorv1beta1.OpenStackBackupRequest, crLists ospdirectorv1beta2.CrsForBackup, ) (bool, []client.Object)
GetAreControllersQuiesced - returns true if all desired CRs for backup are in their respective "finished" state, or false with a list of "bad" CRs if otherwise
func GetAreResourcesRestored ¶
func GetAreResourcesRestored( backup *ospdirectorv1beta2.OpenStackBackup, crLists ospdirectorv1beta2.CrsForBackup, ) (bool, []client.Object)
GetAreResourcesRestored - returns true if all desired CRs for backup restore are in their respective "finished" state, or false with a list of "bad" CRs if otherwise
func GetCRLists ¶
func GetCRLists( ctx context.Context, r common.ReconcilerCommon, namespace string, ) (ospdirectorv1beta2.CrsForBackup, error)
GetCRLists - Get lists of all OSP-D operator resources in the namespace that we care to save/restore
func GetConfigMapList ¶
func GetConfigMapList( ctx context.Context, r common.ReconcilerCommon, request *ospdirectorv1beta1.OpenStackBackupRequest, desiredCrs *ospdirectorv1beta2.CrsForBackup, ) (corev1.ConfigMapList, error)
GetConfigMapList - Get list of all OSP-D operator config maps in the namespace that we care to save/restore
func GetSecretList ¶
func GetSecretList( ctx context.Context, r common.ReconcilerCommon, request *ospdirectorv1beta1.OpenStackBackupRequest, desiredCrs *ospdirectorv1beta2.CrsForBackup, ) (corev1.SecretList, error)
GetSecretList - Get list of all OSP-D operator secrets in the namespace that we care to save/restore
Types ¶
This section is empty.