cloudbees-oss / inject-metadata-velero-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A restore plugin for Velero which mutates all restored StatefulSets, adding (or replacing) the environment variable RESTORED_FROM_BACKUP in each container. The value will be the identifier of the Velero restore object.

This is useful for informing a stateful application that it has been freshly restored from backup. It might then take special steps to recover from partly written files, etc. CloudBees CI honors this variable.

Usage:

initContainers:
# your existing plugins, then add:
- name: inject-metadata-velero-plugin
  image: ghcr.io/cloudbees-oss/inject-metadata-velero-plugin:main
  imagePullPolicy: Always
  volumeMounts:
  - mountPath: /target
    name: plugins

Binaries are signed with Sigstore.

Kubernetes feature #48180, if implemented, would offer an alternate approach.

About

License:Apache License 2.0


Languages

Language:Go 47.1%Language:Makefile 26.0%Language:Shell 13.8%Language:Dockerfile 13.1%