Skip to content

Multiple local private plugins? #9957

@yongzhang

Description

@yongzhang

Welcome!

  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?

I have 2 local private plugins with structure like this:

plugins-local/src/github.com/A
plugins-local/src/github.com/B

And config like this (just an example):

experimental:
  localPlugins:
    A:
      moduleName: github.com/A
    B:
      moduleName: github.com/B

I would expect both plugins work.

What did you see instead?

I see below behavior:

Only ONE source code can be in src.

If I put 2 plugins there, I will see

configuration: invalid middleware type or middleware does not exist

What version of Traefik are you using?

v2.9.10

What is your environment & configuration?

experimental:
  localPlugins:
    A:
      moduleName: github.com/A
    B:
      moduleName: github.com/B

Add more configuration information here.

If applicable, please paste the log output in DEBUG level

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions