cloudnative-pg / cloudnative-pg/plugin-barman-cloud

Allow setting sizeLimit for `plugins` emptyDir

Open
#1,050 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
191
Forks
72
Avg merge
2d 21h
Merged PRs (30d)
21

Description

The `InjectPluginVolumePodSpec` function (`internal/cnpgi/operator/lifecycle.go`) creates `plugins` emptyDir volume, but does not set any `sizeLimit` for it, nor does it allow configuring one.

The function checks if the `plugins` volume already exists before creating it, so I checked if the `Cluster` resource allows setting extra volumes, to set a `sizeLimit` that way, but it doesn't.

It would be nice if there was some option to define `sizeLimit` for the `plugins` volume.

For reference, the cloudnative-pg operator has [EphemeralVolumesSizeLimitConfiguration](https://cloudnative-pg.io/docs/1.30/cloudnative-pg.v1#ephemeralvolumessizelimitconfiguration) to configure this for the `shm` and `scratch-data` volumes.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.