Settings

Theme

Show HN: StatefulSet Backup Operator v0.0.2 – Added tests and hooks improvements

github.com

1 points by lep_qq 18 days ago · 0 comments · 1 min read

Reader

Quick update on the StatefulSet Backup Operator I shared last week. Based on early feedback and code review, I've made several improvements: What's new in v0.0.2-alpha:

Container name specification for pre/post backup hooks (you can now target specific containers in multi-container pods) Proper error handling throughout the codebase (fixed unchecked errors that linters were complaining about) Added unit tests for core reconciliation logic Cleaner code structure following Go best practices

Still experimental, but getting more stable. The operator automates PV snapshots for StatefulSets using Kubernetes VolumeSnapshot API, with backup policies defined as CRDs. Looking for feedback on feature priorities: I'm trying to figure out what would make this actually useful beyond a learning project. Some ideas I'm considering:

Application-aware backup hooks (e.g., MySQL flush before snapshot) Backup verification/validation Better observability (Prometheus metrics) Restore automation (currently manual) Multi-cluster snapshot replication

Which of these (or other features) would matter for real-world usage? Or is Velero already solving all these problems well enough that narrow-scope alternatives don't make sense? Appreciate any thoughts from folks running stateful workloads on Kubernetes.

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection