cloudnative-pg / cloudnative-pg/plugin-barman-cloud
Allow setting sizeLimit for `plugins` emptyDir
- Lenguaje dominante
- Go
- Estrellas
- 191
- Forks
- 72
- Merge medio
- 1 d 16 h
- PR fusionados (30 d)
- 18
Descripción
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.
Guía de contribución
Línea de trabajo
Comienza con InjectPluginVolumePodSpec en internal/cnpgi/operator/lifecycle.go e inspecciona cómo se representan el recurso Cluster y la configuración de volumen existente. Sigue el volumen emptyDir de plugins generado en la especificación del pod y determina después dónde debe ubicarse un sizeLimit configurable, y verifica que el volumen resultante lleve el límite solicitado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- go, kubernetes
- Área
- infrastructure
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 55/100