-
Notifications
You must be signed in to change notification settings - Fork 47
Add require_volume_annotation
for restic plugin
#1132
Conversation
1e9c9bc
to
5cc4021
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nits
assets/terraform-modules/aws/flatcar-linux/kubernetes/versions.tf
Outdated
Show resolved
Hide resolved
I just noticed this PR includes commits from #1131, sorry that I put all review comments here. It's good to mention such things in PR description :) |
5cc4021
to
264861a
Compare
264861a
to
93b9487
Compare
default_volumes_to_restic
for restic pluginrequire_volume_annotation
for restic plugin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are conflicts which needs to be resolved.
@invidian yes, I found a bug in the existing code and resolving that. |
d599311
to
a3ff583
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one nit, otherwise LGTM
@invidian There is an opt-out feature in Velero which should be added as annotation if volume is not be backed up by restic by default. Should we flip the default value for |
Sounds good 👍 If we have a place for it, we could mention it in our documentation for Velero component. |
a3ff583
to
12176ee
Compare
This commit adds a new field `require_volume_annotation`. If enabled the user will not have to manually add annotations to the pod when taking backups. Signed-off-by: Imran Pochi <imran@kinvolk.io>
12176ee
to
b8d7197
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR is based on top of #1131 and would need to be merged first.
Adds a new field
require_volume_annotation
that was introduced in Velero v1.5.2.If enabled the user will have to manually add annotations to the pod when taking backups.
Default is
false
, i.e volumes will be backed up without the need for annotation.