Skip to content

wip: exclude secrets from controller-runtime cache - #11047

Draft
bergdavi wants to merge 1 commit into
cloudnative-pg:mainfrom
bergdavi:dev/10924
Draft

bergdavi wants to merge 1 commit into
cloudnative-pg:mainfrom
bergdavi:dev/10924

Conversation

@bergdavi

@bergdavi bergdavi commented Jun 25, 2026 •

Copy link
Copy Markdown

The current controller-runtime cache configuration caches all secret data in memory. In namesapces with many large secrets (e.g. 100+ long helm release history) this causes excessive memory utilization.

This change removes the secret data from the cache, and instead sends all secret Get requests to the API server.

This is just a proof of concept change, it's not well written or well tested, just sharing it for discussion on the approach.

Fixes #10924

@cnpg-bot cnpg-bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.25 release-1.28 labels Jun 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

❗ By default, the pull request is configured to backport to all release branches.

  • To stop backporting this pr, remove the label: backport-requested ◀️ or add the label 'do not backport'
  • To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-requested ◀️ This pull request should be backported to all supported releases release-1.28 release-1.30

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: High memory usage/OOMKill of operator if there are many large secrets in the namespace

3 participants