velero-io/velero

Consider making it easier to add fsfreeze or other pre/post hooks to pods

Open

#1,872 opened on Sep 12, 2019

View on GitHub
 (1 comment) (1 reaction) (0 assignees)Go (1,550 forks)auto 404
Enhancement/UserGood first issueIceboxNeeds ProductResticReviewed Q2 2021kind/requirement

Repository metrics

Stars
 (10,111 stars)
PR merge metrics
 (PR metrics pending)

Description

Describe the problem/challenge you have Right now, if a user wants to use an fsfreeze or other pre/post hook for their pod backup, they need to manually add annotations to the pod and possibly add a container to the pod spec as well (i.e. the gcr.io/heptio-images/fsfreeze image). This can be burdensome for users.

Describe the solution you'd like Per #1586, one option would be to add a webhook to automatically add this to new pods. Another option would be a CLI command that makes this easier (e.g. velero hook add).

Contributor guide