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

Sidecar plugin requires discover command #12027

Closed
3 tasks done
nbjohnson opened this issue Jan 18, 2023 · 7 comments · Fixed by #12073
Closed
3 tasks done

Sidecar plugin requires discover command #12027

nbjohnson opened this issue Jan 18, 2023 · 7 comments · Fixed by #12073
Labels
bug Something isn't working

Comments

@nbjohnson
Copy link

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

When using the plugin sidecar format, even when calling the plugin by name a discover command is still required.

To Reproduce

apiVersion: argoproj.io/v1alpha1
kind: ConfigManagementPlugin
metadata:
  name: my-plugin
spec:
  version: v1.0
  ...
  # no discover command
apiVersion: apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
  name: testapp
spec:
  ...
  template:
    ...
    spec:
      project: test
      source:
        ...
        plugin:
          name: my-plugin-v1.0
          ...

Sidecar log: invalid plugin configuration file. at least one of discover.find.name.command or discover.find.glob or discover.fineName should be non-empty

Expected behavior

The appset runs through the plugin that has been specified by name, not having to put in a dummy discover command.

Screenshots

Version

v2.6.0-rc4

Logs

Paste any relevant application logs here.
@nbjohnson nbjohnson added the bug Something isn't working label Jan 18, 2023
@crenshaw-dev
Copy link
Collaborator

@gdsoumya would you have time to tackle this?

@gdsoumya
Copy link
Member

invalid plugin configuration file. at least one of discover.find.name.command or discover.find.glob or discover.fineName should be non-empty

Sure will take a look at the issue

@gdsoumya
Copy link
Member

@crenshaw-dev by removing the need for a discovery mechanism we kind of make it open for mistakes where the plugin specified cannot actually support the app and also a plugin without discovery would not match any app that doesn't explicitly specify it's name are we good with these new limitations?

@crenshaw-dev
Copy link
Collaborator

Yep, I think those limitations make sense as long as they're well-documented. I think it would also really help for testing. Users can be certain that their plugin is being invoked.

@gdsoumya
Copy link
Member

Sounds good, will get a pr in a few days.

@migueleliasweb
Copy link

Did anyone notice the typo in finename - instead of filename?

@nmcostello
Copy link

@migueleliasweb I see that too, wonder if it's just in the error log or if there is also a typo in the code somewhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants