This repository will contain plugins for Velero to solve use case during restoreItemAction.
To build the plugins, run
$ make
To build the image, run
$ make container
This builds an image tagged as velero/velero-plugin-example:main
. If you want to specify a different name or version/tag, run:
$ IMAGE=your-repo/your-name VERSION=your-version-tag make container
To deploy your plugin image to an Velero server:
- Make sure your image is pushed to a registry that is accessible to your cluster's nodes.
- Run
velero plugin add <registry/image:version>
. Example with a dockerhub image:velero plugin add velero/velero-plugin-example
.
On the cluster, create a ConfigMap with the label agoracalyce.io/replace-pattern: RestoreItemAction
like below:
apiVersion: v1
kind: ConfigMap
metadata:
name: replace-pattern-config
namespace: velero
labels:
velero.io/plugin-config: ""
agoracalyce.io/replace-pattern: RestoreItemAction
data:
# Example of pattern mappings
old-pattern: new-pattern