velero-custom-plugins

command module
v0.0.0-...-62bee68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

Velero custom plugins

velero-custom-plugins-test

This repository will contain plugins for Velero to solve use case during restoreItemAction.

Building the plugins

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 

Deploying the plugin

To deploy your plugin image to an Velero server:

  1. Make sure your image is pushed to a registry that is accessible to your cluster's nodes.
  2. Run velero plugin add <registry/image:version>. Example with a dockerhub image: velero plugin add velero/velero-plugin-example.

Using this plugin

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL