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

deck validate / lint Patch YAML file resulting Error: Additional property patches is not allowed #1540

Open
leo00900 opened this issue Feb 17, 2025 · 2 comments

Comments

@leo00900
Copy link

Hi all
I am trying to implement GitLab pipeline with decK

I am using kong/deck image with entrypoint overwritten as /bin/sh -c

When I run deck file validate, the following error occur

$ deck file validate patch/*.yml
Error: 1 errors occurred:
	reading file patch/SIT-1.0.1.yml: validating file content: 1 errors occurred:
	validation error: object=[{"remove":["_ignore","_comment"],"selectors":["$..services[*]"],"values":{"_comment":"comment injected by patching","read_timeout":10000}}], err=(root): Additional property patches is not allowed

patch file:

patches:
 - selectors:
     - $..services[*]
   values:
     read_timeout: 10000
     _comment: comment injected by patching
   remove:
     - _ignore
     - _comment
@robincher
Copy link
Member

Hi @leo00900 ,

Can you share with us the decK version you running?

@leo00900
Copy link
Author

Hi @robincher
We are using v1.44.1
Also, we found that decK validate and lint actually have the same problem with the file output from dump, so we would like to know if there is any guideline for the file format that we can use lint and validate properly.
Thanks

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