reactive-tech / kubegres

Kubegres is a Kubernetes operator allowing to deploy one or many clusters of PostgreSql instances and manage databases replication, failover and backup.
https://www.kubegres.io
Apache License 2.0
1.32k stars 74 forks source link

Add Folder to database volume definition #109

Open IJOL opened 2 years ago

IJOL commented 2 years ago

Add syntax to spec, to be able to set pgdata env var directly something like:

database: size: 1Gi volumeMount: /pgdata folder: mypostgres

this should give PGDATA=/pgdata/mypostgres to be used in the 2 places needed here and here..

I'll try to contribute a PR about that but, doesnt have a clear understanding of where to add the needed spec bit which files comprise the crd to be edited.. , code seems easier than boilerplate yaml :)... if anyone can help with the yaml part , will be great.. Thanks in advance..