Giter Site home page Giter Site logo

Use Cases? about k8s-openapi HOT 1 CLOSED

arnavion avatar arnavion commented on September 23, 2024
Use Cases?

from k8s-openapi.

Comments (1)

Arnavion avatar Arnavion commented on September 23, 2024

What is your use-case or planned use for this? Are you planning to write clients/controllers/random utils with it?

I'm personally not planning to do much with it. I had initially started this because I might have needed it for a work project, but that is not the case any more. At any rate I will continue working on it in my free time for now. Edit January 2019: This crate is now used for another work project as both a client and a custom resource controller, so maintenance is not a concern.

Yes, the use case is to be the equivalent of kubernetes/api and kubernetes/client-go for Rust. So you'd use it to write both external client applications to interface with a k8s cluster, and operators or controllers that run within the cluster.

I'd be curious if you've thought about being able to define models in Rust and emit CRDs or custom API object definitions? Or maybe that's more appropriate for a separate repo/gen-tool?

If you want to use this crate directly, you can see the k8s-openapi-tests directory for an example. There is a CRD example there also that shows how you'd define and register your own CRD type, and create CRs of that type.

But yes, the API provided by this crate is rough and not very Rust-like. My expection is that repos like anowell/kubeclient-rs will use this crate and layer a more Rust-like API on top. See anowell/kubeclient-rs#4 for discussion about that. I don't think I would want this crate to do any fixups to the generated code (apart from what it does to work around mistakes in the spec, of course).

from k8s-openapi.

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.