redpanda-data / redpanda-data/benthos

Lint error with GRPC plugin: unable to infer component type

Open
#326 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
571
Forks
120
Avg merge
2d 1h
Merged PRs (30d)
18

Description

Hi.

I tried to lint config which uses custom golang plugin.

$ redpanda-connect lint --skip-env-var-check benthos/...
benthos/plugins/myplugin/plugin.yaml(1,1) field name not recognised
benthos/plugins/myplugin/plugin.yaml(2,1) field summary not recognised
benthos/plugins/myplugin/plugin.yaml(3,1) field command not recognised
benthos/plugins/myplugin/plugin.yaml(4,1) field type not recognised
benthos/plugins/myplugin/plugin.yaml(5,1) field fields not recognised
benthos/resources/common.yaml(38,1) unable to infer component type: [label myplugin]

How can I avoid this error?
I can move plugins directory but benthos/resources/common.yaml will still result in an errorr.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the report with redpanda-connect lint --skip-env-var-check benthos/... and the shown custom plugin paths. Start by tracing how benthos/plugins/myplugin/plugin.yaml is parsed and how benthos/resources/common.yaml infers the component type. Done means the custom gRPC plugin configuration can be linted without the reported field or component-type errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, grpc
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.