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 to configure this for the shm and scratch-data volumes.
The
InjectPluginVolumePodSpecfunction (internal/cnpgi/operator/lifecycle.go) createspluginsemptyDir volume, but does not set anysizeLimitfor it, nor does it allow configuring one.The function checks if the
pluginsvolume already exists before creating it, so I checked if theClusterresource allows setting extra volumes, to set asizeLimitthat way, but it doesn't.It would be nice if there was some option to define
sizeLimitfor thepluginsvolume.For reference, the cloudnative-pg operator has EphemeralVolumesSizeLimitConfiguration to configure this for the
shmandscratch-datavolumes.