Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

couldn't find cmp-server plugin with name argocd-lovely-plugin supporting the given repository #177

Closed
jannes-stubbemann-20230331 opened this issue May 22, 2023 · 4 comments

Comments

@jannes-stubbemann-20230331

Hi there,

I have installed argocd with the plugin using the resources here: https://github.com/crumbhole/argocd-lovely-plugin/tree/main/examples/installation/argocd-sidecar.

I am having an applicationset with

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
  name: applications
  namespace: argocd
spec:
  generators:
    - matrix:
        generators:
          - clusters:
              selector:
                matchLabels:
                  argocd.argoproj.io/secret-type: cluster
          - git:
              repoURL: git@github.com:/organization/repo
              revision: HEAD
              files:
                - path: apps/**/overlays/{{ name }}/kustomization.yaml
template:
    metadata:
      labels:
        app.kubernetes.io/managed-by: argocd
        app.kubernetes.io/name: '{{ path[0] }}'
      name: '{{ name }}-{{ path[1] }}'
      namespace: argocd
    spec:
      destination:
        namespace: '{{ path[1] }}'
        server: '{{ server }}'
      source:
        path: apps/{{ path[1] }}/overlays/{{ name }}
        repoURL: git@github.com:/organization/repo
        targetRevision: HEAD
        plugin:
          name: argocd-lovely-plugin
      project: default
      syncPolicy:
        automated:
          allowEmpty: true
          prune: true
          selfHeal: true
        syncOptions:
        - ServerSideApply=true
        - CreateNamespace=true

in argocd ui, each application is giving the following error

rpc error: code = Unknown desc = Manifest generation error (cached): plugin sidecar failed. couldn't find cmp-server plugin with name argocd-lovely-plugin supporting the given repository

I would expect the example to work out of the box. What am I missing?

@Joibel
Copy link
Contributor

Joibel commented May 22, 2023

Without looking in detail, the obvious thing to me is that the current sidecar plugins are versioned and so you'd need to refer to it as argocd-lovely-plugin-v1.0.

I realise the documentation falls short on this, and have a PR in starting to address that.

@tico24
Copy link
Collaborator

tico24 commented May 22, 2023

The short answer is "the plugin version". Currently 1.0.

So the plug-in name is argocd-lovely-plugin-v1.0 at the moment.

Soon the version will match the container tag.

@jannes-stubbemann-20230331
Copy link
Author

yes, that's it. Thank you very much! @Joibel @tico24 :-)

I now get another error

rpc error: code = Unknown desc = Manifest generation error (cached): plugin sidecar failed. error generating manifests in cmp: rpc error: code = Unknown desc = error generating manifests: `argocd-lovely-plugin` failed exit status 1: 2023/05/22 20:35:40 error running kustomize: exit status 1: Error: accumulating resources: accumulation err='accumulating resources from '../../base': evalsymlink failure on '/base' : lstat /base: no such file or directory': must build at directory: not a valid directory: evalsymlink failure on '/base' : lstat /base: no such file or directory

which used to work before. My kustomization.yamls look like

kind: Kustomization
resources:
- ../../base

🤔

@jannes-stubbemann-20230331
Copy link
Author

I think this is covered in #66. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants