Coder Social home page Coder Social logo

Comments (5)

senthilrch avatar senthilrch commented on July 18, 2024

we will address only the deletion of imagecache resource in this issue. deleting images during imagecache update will be taken up in a separate issue.

from kube-fledged.

senthilrch avatar senthilrch commented on July 18, 2024

We will implement imagecache deletion as follows:-

  • Leverage Finalizers mechanism to have control over when the actual API resource get's deleted.
  • As a pre-requisite, when the imagecache resource is created, fledged will add finalizer "fledged" to the resource.
  • When user wants to delete the imagecache resource, it means the user's intention is to both delete the API resource + purge the cached images.
  • User first needs to issue kubectl delete command with "--wait=false" option. Fledged controller will take actions to remove the cached images from the worker node. It will then update the status of the removal to status field of imagecache resource. However the finalizer "fledged" will not be removed yet, so the API resource will not be deleted yet.
  • User then can query the imagecache resource using kubectl/curl to check the status of purging the imagecache. If there are any failures in removal, user should note down the image name and node and has to remove those failing images manually. Alternatively user can choose to leave the images in the worker nodes.
  • User then needs to issue a second kubectl delete command with "--now". Fledged controller will remove the finalizer from the imagecache resource. The API resource will automatically get deleted. An event will also be generated.

from kube-fledged.

kannanvr avatar kannanvr commented on July 18, 2024

@senthilrch , Kindly assign this issue to me

from kube-fledged.

senthilrch avatar senthilrch commented on July 18, 2024

@kannanvr : How is it going?

from kube-fledged.

senthilrch avatar senthilrch commented on July 18, 2024

@kannanvr : kindly update the progress if any

from kube-fledged.

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.