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

Docker image points to old garethr/kubernetes-json-schema repo #223

Open
orrc opened this issue Mar 20, 2020 · 1 comment
Open

Docker image points to old garethr/kubernetes-json-schema repo #223

orrc opened this issue Mar 20, 2020 · 1 comment

Comments

@orrc
Copy link

orrc commented Mar 20, 2020

Using the current-latest garethr/kubeval Docker image (at the moment 0.14.0) doesn't work with newer schemas from instrumenta/kubernetes-json-schema.

From what I gather from #135, that is the "official" Docker image for kubeval.

Based on garethr/kubernetes-json-schema#26, and from finding https://kubernetesjsonschema.dev/ in the source, it appears that instrumenta/kubernetes-json-schema should be the place to read schemas from.

For example, using the v1.15.7 schema doesn't currently work:

$ docker run --rm -t -v `pwd`:`pwd`:ro -w `pwd` garethr/kubeval:0.14.0 \
    --strict -v 1.15.7 *.yml

1 error occurred:

* Problem loading schema from the network at 
https://raw.githubusercontent.com/garethr/kubernetes-json-schema/master/v1.15.7-standalone-strict/deployment.json: 
Could not read schema from HTTP, response status is 404 Not Found
@orrc
Copy link
Author

orrc commented Mar 20, 2020

From instrumenta/kubernetes-json-schema#11 (comment), a workaround to this issue (and kubernetesjsonschema.dev being outdated) is to add the -s parameter with the GitHub raw URL: 👍

$ docker run --rm -t -v `pwd`:`pwd`:ro -w `pwd` garethr/kubeval:0.14.0 \
    -s https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/ \
    --strict -v 1.15.7 *.yml

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

1 participant