Skip to content

Add Config for Database Persistence - #9

Merged
williamnswanson merged 11 commits into
PelicanPlatform:mainfrom
williamnswanson:pr/volume+volumeMount_enahancements
Aug 7, 2026
Merged

Add Config for Database Persistence #9
williamnswanson merged 11 commits into
PelicanPlatform:mainfrom
williamnswanson:pr/volume+volumeMount_enahancements

Conversation

@williamnswanson

Copy link
Copy Markdown
Contributor

Basically a copy of what we do for logging (minus the logrotate stuff).

Updated the ci config and the README to include the new knobs

@williamnswanson williamnswanson self-assigned this Aug 6, 2026
@williamnswanson williamnswanson added the enhancement New feature or request label Aug 6, 2026
matyasselmeci
matyasselmeci previously approved these changes Aug 6, 2026

@matyasselmeci matyasselmeci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Can you bump the version in Chart.yaml? This is a new feature, not a bugfix, so let's call it 0.3.0.

@williamnswanson

Copy link
Copy Markdown
Contributor Author

Bumped chart version to "0.3.0", also fixed / added database persistence to places where I missed it in the first pass.

Calling out bf200d7 and 5034c83 especially, since I'm less sure of how those get used.

@matyasselmeci

Copy link
Copy Markdown
Contributor

Bumped chart version to "0.3.0", also fixed / added database persistence to places where I missed it in the first pass.

Calling out bf200d7 and 5034c83 especially, since I'm less sure of how those get used.

The first one is a validation check that if you enable database persistence on a separate volume, you either specify a PVC name it can use, or the storageClass so it can make one. Applying the chart fails if the validation fails.

The second one is probably not going to be very visible to us but NOTES.txt is a file that gets printed to the console if the user runs helm install by hand. If the chart creates any PVCs, I print a list of the PVCs that got created so the user knows what they're called.

Comment thread templates/configmap-pelican.yaml Outdated
Server.TlsCertificate: "/etc/pelican/cert-orig/tls.crt"
Server.TlsKey: "/etc/pelican/cert-orig/tls.key"
Server.Hostname: {{ required "serverHostname is required" .Values.serverHostname | quote }}
Server.DbLocation: "/cache/pelican/pelican.sqlite"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be something like /var/lib/pelican/pelican.sqlite since you're mounting the database volume there?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, I think I got confused with the non-seperate case. Fixed in d5242fa

@williamnswanson
williamnswanson merged commit 23f280a into PelicanPlatform:main Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants