mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-22 08:48:49 +00:00
1.4 KiB
1.4 KiB
Plugins
Argo CD allows integrating more config management tools using config management plugins. Following changes are required to configure new plugin:
- Make sure required binaries are available in
argocd-repo-serverpod. The binaries can be added via volume mounts or using custom image (see custom_tools). - Register a new plugin in
argocd-cmConfigMap:
data:
configManagementPlugins: |
- name: pluginName
init: # Optional command to initialize application source directory
command: ["sample command"]
args: ["sample args"]
generate: # Command to generate manifests YAML
command: ["sample command"]
args: ["sample args"]
The generate command must print a valid YAML stream to stdout. Both init and generate commands are executed inside the application source directory.
Commands have access to system environment variables and following additional variables:
ARGOCD_APP_NAME - name of application; ARGOCD_APP_NAMESPACE - destination application namespace
- Create an application and specify required config management plugin name.
argocd app create <appName> --config-management-plugin <pluginName>
More config management plugin examples are available in argocd-example-apps.