Skip to content

Commit

Permalink
chore: fix pg_store
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Beaumont <[email protected]>
  • Loading branch information
michaelbeaumont committed Nov 8, 2024
1 parent e9f8014 commit 58a17d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/plugins/resources/postgres/pq_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ func (r *postgresResourceStore) Update(_ context.Context, resource core_model.Re
return errors.Wrap(err, "failed to convert meta version to int")
}

labels, err := prepareLabels(opts.Labels)
updateLabels := resource.GetMeta().GetLabels()
if opts.ModifyLabels {
updateLabels = opts.Labels
}
labels, err := prepareLabels(updateLabels)
if err != nil {
return err
}
Expand Down

0 comments on commit 58a17d9

Please sign in to comment.