Giter Site home page Giter Site logo

Comments (5)

mbohlool avatar mbohlool commented on July 18, 2024

Look like Patch is defined as this in kubernetes:

// Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.
type Patch struct{}

That I hoped would result in an empty class in generated code, but it look like swagger-codegen ignores it (it exists in swagger.json). I guess we may need to implement it manually. If you want to work on it, that's great. Add the class to kubernetes/client/model but keep in mind that the folder will be removed and regenerated on each call to scripts/update-client.go so make sure you update the script to keep your file somewhere and restore it. We may need to have a general mechanism for this non-generated codes inside generated packages.
I will add you as contributor to this project and assign this to you.

from python.

dims avatar dims commented on July 18, 2024

@mbohlool @rwillard - patch_namespaced_service and patch_namespaced_config_map have the same problem. I am adding functional tests against a real k8s instance in my PR here:
8fac5fe

from python.

mbohlool avatar mbohlool commented on July 18, 2024

@rwillard can you please confirm if you are working on this?

from python.

rwillard avatar rwillard commented on July 18, 2024

Whoops, no sorry I won't have time to work on it. I was able to make replace work for my purposes.

from python.

mbohlool avatar mbohlool commented on July 18, 2024

no problem. Thanks for letting us know.

from python.

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.