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

Commit

Permalink
Fix for #58 (#60)
Browse files Browse the repository at this point in the history
* yaml/configMap default configuration

* fix make test

* fix with new objects

* fix with new objects

* config small fixes

* fix for #51

* fix for #58
  • Loading branch information
gazarenkov committed Dec 7, 2023
1 parent 51d72f2 commit a8769e6
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit a8769e6

Please sign in to comment.