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

Use the mutex pool provided by k8s keymutex #975

Merged
merged 4 commits into from
Dec 10, 2024

Conversation

benashz
Copy link
Collaborator

@benashz benashz commented Nov 25, 2024

The previous client cache locking scheme was not thread safe, and allocated more locks than are typically needed. This change replaces that approach by using the KeyMutex provided by the k8s utils package. Locks are now a pooled resource.

See https://pkg.go.dev/k8s.io/utils/keymutex#NewHashed for more info.

Other fixes

  • update invalid Bitnami Helm chart repo for postgres. We should consider phasing out its use.
  • Bump TF Helm to latest version

The previous client cache locking scheme was not thread safe, and
allocated more locks than are typically needed. This change replaces
that approach by using the KeyMutex provided by the k8s utils package.
Locks are now a pooled resource.

Other fixes
- update invalid Bitnami Helm chart repo for postgres. We should phasing
  out its use.
- Bump TF Helm to latest version
@benashz benashz requested a review from a team as a code owner November 25, 2024 21:07
@benashz benashz requested a review from tvoran November 25, 2024 21:07
@benashz
Copy link
Collaborator Author

benashz commented Nov 25, 2024

Might relate to #973

chart/values.yaml Show resolved Hide resolved
test/unit/deployment.bats Outdated Show resolved Hide resolved
test/unit/deployment.bats Outdated Show resolved Hide resolved
test/unit/deployment.bats Outdated Show resolved Hide resolved
test/unit/deployment.bats Outdated Show resolved Hide resolved
@benashz benashz added this to the v0.9.1 milestone Dec 10, 2024
@benashz benashz self-assigned this Dec 10, 2024
@benashz benashz merged commit 3b75144 into main Dec 10, 2024
43 checks passed
@benashz benashz deleted the VAULT-32632/client-cache-use-k8s-utils-keymutex branch December 10, 2024 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants