Repository navigation
Replies: 1 comment
|
Feel free to add this as an issue in sofka-plugins, I accept this proposal, but as sofka-plugin, not as core. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
PR needed?
Problem
Sofka shows Velero resources as plain objects. To find out whether last night's
backup completed, how many items it walked, or why it failed, an operator must
leave Sofka and run
velero backup describeor read the object YAML. The sameis true for restores. There is also no quick way to see whether the backup
storage locations still validate, which is the first thing to check when
backups start to fail.
Proposal
One package,
plugins/velero/, with three commands.:velero-inspect:velero-triggervelero backup create --from-schedule.:velero-locations:velero-inspectruns no external tool. A Velero Backup and Restore keep theirwhole result in
status, and Sofka already sends the selected object, so thereport comes from the request. Velero does not have to be installed on the
operator's machine for it.
:velero-locationsreads the context and not a selection, so it works from anyview. It takes a
namespaceinput that defaults tovelero.Safety
:velero-triggerismutatingandconfirm. It is not marked dangerous,because a trigger adds a backup and deletes nothing. A
plugin:velero-triggerguardrail can deny it per context or namespace, and a
dry_runinput shows thecommand without creating anything.
Sofka matches scopes on the resource plural only, and
backups,restoresandschedulesare plurals other APIs also serve. Every action checks thevelero.iogroup, the kind, and the selected name and namespace before itreads or changes anything.
:velero-triggeraccepts noreplayinput, becausea replayed trigger would report a backup that nothing created.
Dependencies
veleroonPATHfor:velero-triggerkubectlonPATHfor:velero-locations:velero-inspectneeds neitherLimits
tarball or the object storage.
velero backup describe --detailsfor that.:velero-triggerdoes not wait for the backup, name it, or override theschedule's template.
:velero-triggerisunavailable there. The other two commands still work.
All reactions