Skip to content

Conversation

ian-howell
Copy link
Contributor

This adds an option to kubeval's configuration that allows the use of
additional base URLs to search for schemas. The tool will still prefer
the default repositories, but if a schema cannot be found for a given
YAML document (e.g. a CRD), kubeval will fallback on the secondary URLs.
This implies that schemas must have been pre-generated and hosted at the
secondary URLs.

@garethr I'm not sure why the last PR for this was closed, but anyway, this is a much more polished version of the feature. I'm going to add some documentation on generating schemas sometime tomorrow.

This adds an option to kubeval's configuration that allows the use of
additional base URLs to search for schemas. The tool will still prefer
the default repositories, but if a schema cannot be found for a given
YAML document (e.g. a CRD), kubeval will fallback on the secondary URLs.
This implies that schemas must have been pre-generated and hosted at the
secondary URLs.
@garethr
Copy link
Collaborator

garethr commented Aug 13, 2019

Thanks, this looks very useful. Apologies if the previous PR was closed by accident.

Happy to merge this now and look out for the documentation.

@garethr garethr merged commit a766f3c into instrumenta:master Aug 13, 2019
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

Successfully merging this pull request may close these issues.

2 participants