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

lint command does not support glob patterns on resources #3042

Open
peczenyj opened this issue Nov 28, 2024 · 1 comment
Open

lint command does not support glob patterns on resources #3042

peczenyj opened this issue Nov 28, 2024 · 1 comment

Comments

@peczenyj
Copy link
Contributor

I can read in the help that I can use glob patterns on resources when using the lint command:

NAME:
   redpanda-connect lint - Parse Redpanda Connect configs and report any linting errors

USAGE:
   redpanda-connect lint [command options]

DESCRIPTION:
   Exits with a status code 1 if any linting errors are detected:

     redpanda-connect lint ./configs/*.yaml
     redpanda-connect lint ./foo.yaml ./bar.yaml
     redpanda-connect lint ./configs/...

   If a path ends with '...' then Redpanda Connect will walk the target and lint any
   files with the .yaml or .yml extension.

OPTIONS:
   --deprecated                                                 Print linting errors for the presence of deprecated fields. (default: false)
   --labels                                                     Print linting errors when components do not have labels. (default: false)
   --skip-env-var-check                                         Do not produce lint errors when environment interpolations exist without defaults within configs but aren't defined. (default: false)
   --resources value, -r value [ --resources value, -r value ]  pull in extra resources from a file, which can be referenced the same as resources defined in the main config, supports glob patterns (requires quotes)

but in reality it does not work, if I try in one of my projects:

$ docker run --net host --env-file ${ENV} -v ./config:/c -v ./resources:/r -v ./templates:/t ${IMAGE} lint --skip-env-var-check -r "/r/resource.yaml" -t "/t/*.yaml" /c/config.yaml

/r/*.yaml(1,1) open /r/*.yaml: no such file or directory

but it runs fine with the run command

@artemklevtsov
Copy link

Same here.

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

2 participants