Open jsoref opened 1 year ago
Trying to migrate to the sidecar cmp world, and I'm struggling with the exact same issues as described here:
spec.version
but the error message doesn't mention name-version
is expected as the CMP name (docs neither..)/home/argocd/cmp-server/plugins/myplugin.sock: connect: no such file or directory"
-- ConfigManagementPlugin
name accidentally had a cmp-
prefix although the plugin.name
in Application
did not.
Checklist:
argocd version
.Describe the bug
The including a value for the
version
field of the plugin.yaml for argocd-cmp-server results in a socket path including the version. This doesn't match the expectations of the argocd-server container side of the pod.To Reproduce
Define a plugin.yaml for use w/ the cmp-sidecar form:
Use helm to define a sidecar for the repo-server with a
conf-cmp
and pull in the plugin definition:Expected behavior
version: v1.0
-- I've seen other tickets which also include that).plugins
output from the/settings
api should show<metadata.name>-<spec.version>
instead of<metadata.name>
Screenshots
Version
Logs
Note, I have:
/home/argocd/cmp-server/plugins/conf-v1.0.sock
but it's looking for/home/argocd/cmp-server/plugins/conf.sock
Some more notes:
The limited documentation for this is: https://argo-cd.readthedocs.io/en/latest/operator-manual/config-management-plugins/#using-a-config-management-plugin-with-an-application
https://argo-cd.readthedocs.io/en/latest/operator-manual/config-management-plugins/#1-write-the-plugin-configuration-file