Skip to content

use existing volume if it's name matches sts volume claim template#2066

Merged
AndrewChubatiuk merged 3 commits intomasterfrom
use-existing-volume-if-name-matches
Apr 16, 2026
Merged

use existing volume if it's name matches sts volume claim template#2066
AndrewChubatiuk merged 3 commits intomasterfrom
use-existing-volume-if-name-matches

Conversation

@AndrewChubatiuk
Copy link
Copy Markdown
Contributor

@AndrewChubatiuk AndrewChubatiuk commented Apr 15, 2026


Summary by cubic

Use existing user-defined volumes when their names match the default data/cache volume names instead of auto-creating and mounting emptyDir/PVC. This fixes persistent storage mounts across StatefulSet-based CRs and vmagent in DaemonSet mode, and prevents config conflicts.

Written for commit 04b5a72. Summary will update on new commits.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 16 files

…r: use existing volume if it's name matches sts volume claim template
@AndrewChubatiuk AndrewChubatiuk force-pushed the use-existing-volume-if-name-matches branch from a67fffc to 555354e Compare April 15, 2026 18:29
@AndrewChubatiuk AndrewChubatiuk merged commit 6b7e31b into master Apr 16, 2026
7 checks passed
@AndrewChubatiuk AndrewChubatiuk deleted the use-existing-volume-if-name-matches branch April 16, 2026 10:58
AndrewChubatiuk added a commit that referenced this pull request Apr 16, 2026
…2066)

* vmagent/vmcluster/vlcluster/vtcluster/vlagent/vmanomaly/vmalertmanager: use existing volume if it's name matches sts volume claim template

* chore: fetch volume quicker

* test: add tests for StorageVolumeMountsTo

---------

Co-authored-by: Vadim Rutkovsky <vadim@vrutkovs.eu>
AndrewChubatiuk added a commit that referenced this pull request Apr 16, 2026
…2066)

* vmagent/vmcluster/vlcluster/vtcluster/vlagent/vmanomaly/vmalertmanager: use existing volume if it's name matches sts volume claim template

* chore: fetch volume quicker

* test: add tests for StorageVolumeMountsTo

---------

Co-authored-by: Vadim Rutkovsky <vadim@vrutkovs.eu>
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