Skip to main content

signadot resourceplugin

To create a ResourcePlugin (alias: rp), first write a YAML or JSON file containing the name and spec. The available fields within spec are documented in the ResourcePlugin spec reference.

For example:

name: my-plugin
spec:
runner:
image: ubuntu
create:
- name: say-hello
script: |
#!/usr/bin/env bash
echo hello
delete:
- name: say-goodbye
script: |
#!/usr/bin/env bash
echo good-bye

Submit this plugin by passing the filename to the resourceplugin apply command:

signadot resourceplugin apply -f my-resourceplugin.yaml

You can use resourceplugin list to see all existing resource plugins, and resourceplugin get to see details about a single resource plugin:

# List all resource plugins
signadot resourceplugin list

# Get one resource plugin by name
signadot resourceplugin get my-plugin

You can delete a resource plugin either by name or by pointing at the same file that was used to create it:

# Delete resource plugin by name
signadot resourceplugin delete my-resourceplugin

# Delete resource plugin specified in a file
signadot resourceplugin delete -f my-resourceplugin.yaml

For reusable resource plugin definitions, check out YAML Templates.