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

New feature?: Allow automatic downloads of Kubernetes OpenAPI specs #16

Open
fllaca opened this issue Aug 25, 2020 · 0 comments
Open

New feature?: Allow automatic downloads of Kubernetes OpenAPI specs #16

fllaca opened this issue Aug 25, 2020 · 0 comments

Comments

@fllaca
Copy link
Owner

fllaca commented Aug 25, 2020

Kubernetes OpenAPI specs are publicly available in Github at https://raw.githubusercontent.com/kubernetes/kubernetes/v1.17.0/api/openapi-spec/swagger.json. We could add some local filesystem cache of K8s swagger specs that scheriff can populate on demand when running validations without the -s path/to/swagger.json option. The example usage would be:

specifying K8s version:

# this will download https://raw.githubusercontent.com/kubernetes/kubernetes/v1.17.0/api/openapi-spec/swagger.json and check path/to/k8s/config against it

scheriff --k8s-version=1.17.0 -f path/to/k8s/config

assuming latest stable k8s version:

# this would detect latest stable kubernetes version and download it behind the scenes:

scheriff -f path/to/k8s/config
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