cloudnative-pg / cloudnative-pg/plugin-barman-cloud
Allow setting sizeLimit for `plugins` emptyDir
- Vorherrschende Sprache
- Go
- Sterne
- 191
- Forks
- 72
- Ø Merge
- 2 T. 21 Std.
- Gemergte PRs (30 T.)
- 21
Beschreibung
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.
Beitragsleitfaden
Rechercherichtung
Beginnen Sie mit InjectPluginVolumePodSpec in internal/cnpgi/operator/lifecycle.go und untersuchen Sie, wie die Cluster-Ressource und die vorhandene Volume-Konfiguration dargestellt werden. Verfolgen Sie das generierte plugins emptyDir-Volume in der Pod-Spezifikation und bestimmen Sie anschließend, wo ein konfigurierbares sizeLimit hingehört, und verifizieren Sie, dass das resultierende Volume das angeforderte Limit trägt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- go, kubernetes
- Bereich
- infrastructure
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 55/100