Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gazarenkov committed Dec 6, 2023
1 parent 4863874 commit 4bdb1a0
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 4bdb1a0

Please sign in to comment.