Skip to content

Commit

Permalink
Fix panic when renaming two resources simultaneously during increment…
Browse files Browse the repository at this point in the history
…al parsing (#5717)
  • Loading branch information
begelundmuller authored Sep 17, 2024
1 parent 5541245 commit e38e2f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions runtime/reconcilers/project_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,11 @@ func (r *ProjectParserReconciler) reconcileResourcesDiff(ctx context.Context, in
// Rename if possible
renamed := false
for idx, rr := range deleteResources {
if rr == nil {
// Already renamed
continue
}

var err error
renamed, err = r.attemptRename(ctx, inst, self, def, rr)
if err != nil {
Expand Down

0 comments on commit e38e2f3

Please sign in to comment.