Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(kuma-cp): avoid concurrent access on resource meta (backport of #11997) #12023

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

kumahq[bot]
Copy link
Contributor

@kumahq kumahq bot commented Nov 12, 2024

Automatic cherry-pick of #11997 for branch release-2.7

Generated by action

cherry-picked commit c3d7187
⚠️ ⚠️ ⚠️ Conflicts happened when cherry-picking! ⚠️ ⚠️ ⚠️

On branch release-2.7
Your branch is up to date with 'origin/release-2.7'.

You are currently cherry-picking commit c3d7187c7.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   pkg/kds/util/meta.go
	modified:   pkg/plugins/resources/memory/store.go
	modified:   pkg/plugins/resources/remote/store.go
	modified:   pkg/plugins/secrets/k8s/store.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   pkg/kds/util/resource.go

There were some places where labels on meta weren't not cloned when
duplicating the meta. Walked the code for odd usages of `GetLabels()`.

See also #11886

Signed-off-by: Charly Molter <charly.molter@konghq.com>
Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
Co-authored-by: Mike Beaumont <mjboamail@gmail.com>
@kumahq kumahq bot requested a review from a team as a code owner November 12, 2024 11:39
@kumahq kumahq bot requested review from lobkovilya and Icarus9913 and removed request for a team November 12, 2024 11:39
Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
@michaelbeaumont michaelbeaumont merged commit 2211556 into release-2.7 Nov 12, 2024
15 checks passed
@michaelbeaumont michaelbeaumont deleted the chore/backport-release-2.7-11997 branch November 12, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants