Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Fix for #58 #60

Merged
merged 11 commits into from
Dec 7, 2023
2 changes: 2 additions & 0 deletions controllers/local_db_statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ func (r *BackstageReconciler) applyLocalDbStatefulSet(ctx context.Context, backs
return err
}

// need to patch the Name before get for correct search
statefulSet.Name = fmt.Sprintf("backstage-psql-%s", backstage.Name)
err = r.Get(ctx, types.NamespacedName{Name: statefulSet.Name, Namespace: ns}, statefulSet)
if err != nil {
if errors.IsNotFound(err) {
Expand Down