traefik / plugindemo

This repository includes an example plugin, for you to use as a reference for developing your own plugins
https://plugins.traefik.io/plugins/628c9ee2108ecc83915d7764/demo-plugin
Apache License 2.0
140 stars 45 forks source link

plugin: unknown plugin type #17

Closed poloyacero closed 2 years ago

poloyacero commented 2 years ago

I'ved created and installed a simple plugin, https://plugins.traefik.io/plugins/633ea0230362b66628c949d6/header-authorization

Have it installed in my traefik instance, using helm

traefik-values.yaml

experimental:
  http3:
    enabled: false
  plugins:
    enabled: true
    headauth:
      moduleName: "github.com/poloyacero/headauth"
      version: "v0.0.1"

dynamic_configuration

apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: headerauth
spec:
  plugin:
    headauth:
      header:
        name: "X-User-Role"
      allowed:
        - "super_admin"
      methods:
        - PATCH
        - DELETE
        - POST

Basically just went through the instructions from Plugin Catalog but when I use the middleware plugin and have it assign to a route I got this error, image

Please let me know if I missed something. Thank you so much...

poloyacero commented 2 years ago

solution:

additionalArguments:
  - --experimental.plugins.headauth.modulename=github.com/poloyacero/headauth
  - --experimental.plugins.headauth.version=v0.0.1