Comments (5)
@yannh I'd still love to see this happen.
from kubeconform.
And I was thinking about moving the script from /scripts to /openapi2jsonschema yesterday and was wondering whether people were doing that ;) I can provide a Docker image, yes, does it matter if its a different one than for kubeconform? They both have quite different requirements. Note that if you converted the CRDs once and checked those into version control, that could speed up your CI a bit, but it depends on your requirements :)
from kubeconform.
I'd be fine with a separate Docker image :-)
As for the resulting schema files: I'd use the GitHub cache action to cache the conversion result rather than commit to the repo.
from kubeconform.
it would be nice to have an official docker image. I am using this for now
FROM python:3.9.7-alpine3.14
ENV FILENAME_FORMAT='{kind}-{group}-{version}'
WORKDIR /opt
RUN wget -O /tmp/openapi2jsonschema https://raw.githubusercontent.com/yannh/kubeconform/v0.4.12/scripts/openapi2jsonschema.py \
&& chmod +x /tmp/openapi2jsonschema \
&& python3 -m pip install pyyaml
ENTRYPOINT ["/tmp/openapi2jsonschema"]
docker build -t openapi2jsonschema .
docker run -v "$(pwd)/generated:/opt" openapi2jsonschema "http://...."
from kubeconform.
@yannh ping?
from kubeconform.
Related Issues (20)
- kubeconform does not detect invalid names (eg contain underscore) HOT 1
- Support Validation rules
- Private repo support?
- New release with latest Go version? HOT 2
- Missing file is never reached in openapi2jsonschema.py HOT 2
- Failing on ConfigMap empty key values? HOT 1
- GitHub Action that downloads, installs, and adds CLI tool to PATH HOT 3
- Schema for v1.26.10 is missing HOT 2
- Bug: Junit output shows top-level error count, but not error-count within a test suite HOT 1
- Schema Recognition issue in kubeconform v0.6.3 and above HOT 4
- Question: Can kubeconform report deprecated APIs? HOT 2
- Enhance schema-location to support HTTP basic authentication HOT 1
- Unable to pipe YAMLs to the kubeconform container HOT 1
- Feature request: Support skipping kind/name HOT 1
- [Bug] -skip uses first element in comma separated list only HOT 2
- Kubeconform errors out with DestinationRule, cannot find ':'
- Kubeconform does not report invalid metadata.name HOT 1
- Better/less verbose error formatting? HOT 2
- Could not find schema for HTTPRoute,GCPGatewayPolicy and HealthCheckPolicy HOT 2
- Time to upgrade golang, there are quite a few HIGH findings in kubeconform v0.6.4 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubeconform.