Skip to content

Commit da3eb3e

Browse files
committed
DNM - testing CI
iteratively adding elements from PR openstack-k8s-operators#260 to see what's making it hang
1 parent 8c6251d commit da3eb3e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

controllers/mariadbaccount_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ func (r *MariaDBAccountReconciler) SetupWithManager(mgr ctrl.Manager) error {
6363
func (r *MariaDBAccountReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, _err error) {
6464
log := GetLog(ctx, "MariaDBAccount")
6565

66+
log.Info("this is a test")
67+
6668
var err error
6769

6870
instance := &databasev1beta1.MariaDBAccount{}

controllers/mariadbdatabase_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (r *MariaDBDatabaseReconciler) Reconcile(ctx context.Context, req ctrl.Requ
145145

146146
// here we know that Galera exists so add a finalizer to ourselves and to the db CR. Before this point there is no reason to have a finalizer on ourselves as nothing to cleanup.
147147
if instance.DeletionTimestamp.IsZero() || isNewInstance { // this condition can be removed if you wish as it is always true at this point otherwise we would returned earlier.
148-
if controllerutil.AddFinalizer(dbGalera, fmt.Sprintf("%s-%s", helper.GetFinalizer(), instance.Name)) {
148+
if dbGalera.DeletionTimestamp.IsZero() && controllerutil.AddFinalizer(dbGalera, fmt.Sprintf("%s-%s", helper.GetFinalizer(), instance.Name)) {
149149
err := r.Update(ctx, dbGalera)
150150
if err != nil {
151151
return ctrl.Result{}, err

0 commit comments

Comments
 (0)