Skip to content

core: improve handling of /var/lib/stellar#154

Merged
jacekn merged 1 commit intostellar:mainfrom
jacekn:persistence
Mar 5, 2026
Merged

core: improve handling of /var/lib/stellar#154
jacekn merged 1 commit intostellar:mainfrom
jacekn:persistence

Conversation

@jacekn
Copy link
Copy Markdown
Contributor

@jacekn jacekn commented Mar 5, 2026

This PR improves how /var/lib/stellar directory is handled. Currently if persistence is not enabled new-db runs in an empeheral container which means it doesn't have real effect. This change will use emptyDir if persistence is disabled which will allow core to start as normal.

As drive-by I also bumped core version number

This PR improves how /var/lib/stellar directory is handled.
Currently if persistence is not enabled new-db runs in an empeheral
container which means it doesn't have real effect.
This change will use emptyDir if persistence is disabled which will
allow core to start as normal.

As drive-by I also bumped core version number
Copilot AI review requested due to automatic review settings March 5, 2026 12:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes non-persistent /var/lib/stellar handling in the core StatefulSet when persistence is disabled, ensuring the new-db init container and the core container share the same storage, and bumps the chart/app versions accordingly.

Changes:

  • Always mount /var/lib/stellar in the init container and relevant containers, regardless of persistence setting.
  • Add an emptyDir volume for /var/lib/stellar when core.persistence.enabled=false (PVC still used when enabled).
  • Bump chart version and appVersion.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
charts/core/templates/core-sts.yaml Ensures /var/lib/stellar is backed by emptyDir when persistence is off, while retaining PVC usage when on.
charts/core/Chart.yaml Updates chart version and the default app version tag.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

@satyamz satyamz left a comment

Choose a reason for hiding this comment

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

LGTM

@jacekn jacekn merged commit 9870c99 into stellar:main Mar 5, 2026
6 checks passed
@jacekn jacekn deleted the persistence branch March 5, 2026 13:36
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.

3 participants