Repository navigation
feat: override operator emptyDir volumes with generic ephemeral volumes - #1404
nikitapal-12 wants to merge 1 commit into
Conversation
Administrators cannot replace the operator-managed emptyDir volumes, so temporary Argo CD data always consumes node-local ephemeral storage. A user volume with the same name now replaces that volume, including a Generic Ephemeral Volume (ephemeral.volumeClaimTemplate). emptyDir stays the default. Redis, the image updater, and the commit server accept volumes so their internal emptyDir volumes can be overridden the same way. RFE-10018 Signed-off-by: Nikita Pal <npal@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @nikitapal-12. Thanks for your PR. I'm waiting for a redhat-developer member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
What does this PR do?
Operator-managed
emptyDirvolumes always consume node-local ephemeral storage. A user volume with the same name now replaces that volume, so administrators can supply a Generic Ephemeral Volume (ephemeral.volumeClaimTemplate) instead.emptyDirremains the default, and volumes with new names are still appended.This applies to the repo server, application controller, ApplicationSet controller, server, Dex, Redis, Redis HA proxy, commit server, and image updater. Redis, the image updater, and the commit server gain a
volumesfield so their internalemptyDirvolumes can be overridden the same way.https://redhat.atlassian.net/browse/RFE-10018
PR acceptance criteria:
make serve-docsDocumentation and e2e coverage are not part of this change. Unit tests cover volume replacement and the repo-server ephemeral override.
What type of PR is this?
/kind enhancement
Special notes to the reviewer:
A volume whose name matches an operator-managed volume replaces it, and operator volume order is preserved. To verify, set
spec.repo.volumesto anephemeral.volumeClaimTemplatevolume namedvar-files(orgpg-keyring,plugins, ortmp) and confirm the repo-server pod has a single volume of that name using the ephemeral source.