Giter VIP home page Giter VIP logo

Comments (7)

brendandburns avatar brendandburns commented on June 2, 2024

You can't update a list of Ingress objects. You have to update each Ingress one by one using replaceNamespacedIngress(...)

It may be easier for you to use the Kubectl.replace method here:

https://github.com/kubernetes-client/java/blob/master/extended/src/main/java/io/kubernetes/client/extended/kubectl/Kubectl.java#L54

from java.

irfanjs avatar irfanjs commented on June 2, 2024

@brendandburns
Thanks.

do we have any example on how to pass the body ? it is required parameter and no idea how to pass this ?
Any example please ?

from java.

brendandburns avatar brendandburns commented on June 2, 2024

There are lots of examples here:
https://github.com/kubernetes-client/java/tree/master/examples/examples-release-20/src/main/java/io/kubernetes/client/examples

from java.

irfanjs avatar irfanjs commented on June 2, 2024

@brendandburns
I saw the examples . Now , in order to replace the existing ingress object, do I need to export the existing object into YAML file and then use the YAML client (io.kubernetes.client.util.Yaml) to replace then entries in that YAML file ? and then give that YAML file to replaceNamespacedIngress ?

My doubt is , how I will export the existing object into YAML structure using java client and then use the modified YAML file as body for replaceNamespacedIngress method ?

Can you please elaborate ?

from java.

irfanjs avatar irfanjs commented on June 2, 2024

@brendandburns
Can you please suggest ? Thanks in advance.

from java.

irfanjs avatar irfanjs commented on June 2, 2024

@brendandburns :
can you please suggest

from java.

brendandburns avatar brendandburns commented on June 2, 2024

You don't need to export anything, you just use the updated V1Ingress object as the body to use for replace.

I'm going to close this issue because I don't think there is a problem with the client here. If you find issues with the client please file new issues or use the /reopen command.

from java.

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.