GithubHelp home page GithubHelp logo

Comments (5)

james-callahan avatar james-callahan commented on May 22, 2024 3

@yannh I'd still love to see this happen.

from kubeconform.

yannh avatar yannh commented on May 22, 2024 1

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.

mjpieters avatar mjpieters commented on May 22, 2024

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.

slamdev avatar slamdev commented on May 22, 2024

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.

james-callahan avatar james-callahan commented on May 22, 2024

@yannh ping?

from kubeconform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.