cloudnative-pg / cloudnative-pg/plugin-barman-cloud
Allow setting sizeLimit for `plugins` emptyDir
- 主要言語
- Go
- スター
- 192
- フォーク
- 75
- 平均マージ
- 1日 16時間
- マージ済み PR(30日)
- 18
説明
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.
コントリビューションガイド
調査の方向性
internal/cnpgi/operator/lifecycle.go の InjectPluginVolumePodSpec から始め、Cluster リソースと既存のボリューム設定がどのように表現されているかを調べます。Pod spec 内で生成される plugins emptyDir ボリュームを追跡し、次に設定可能な sizeLimit をどこに配置すべきかを判断して、結果のボリュームに要求された制限が付与されていることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- go, kubernetes
- 領域
- infrastructure
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100