GithubHelp home page GithubHelp logo

Comments (6)

alanmeadows avatar alanmeadows commented on July 30, 2024

One decision we’ll need to make on this feature is how to determine what those resources are. One idea is to ensure any resource airshipctl creates is tagged with a special annotation set to determine not only what is owned by airshipctl in general (useful for delete-all) but also at what phase it was applied, e.g. init infra. This should make delete operations rather simplistic as it would just find all resources in the cluster matching these two annotations.

from airshipctl.

ianpittwood avatar ianpittwood commented on July 30, 2024

I'll take a stab at this

from airshipctl.

ianpittwood avatar ianpittwood commented on July 30, 2024

I started on a change here https://review.opendev.org/#/c/707472/

I think I have some questions though. It seems like creating CRUD operations for each type of resource might be a tedious way to approach this, but that seems to be the method that K8s go-client lays out for us. There are third party libraries like this that implement some extra layers of abstraction to allow us to reference resources via string instead of type objects. We could also leverage kubectl to delete resources, but that might be a messy way to go about doing this. Does anyone have any thoughts of how we can cleanly implement this functionality to meet our goals?

from airshipctl.

airshipbot avatar airshipbot commented on July 30, 2024

Related Change #707472

Subject: [WIP][#8] Implement ability to delete existing resource
Link: https://review.opendev.org/c/airship/airshipctl/+/707472
Status: ABANDONED
Owner: Ian Pittwood ([email protected])

Approvals

Code-Review
! None
Verified
-1 Zuul
Workflow
! None

Last Updated: 2021-03-19 12:39:17 CDT

Issue reopened due to new activity on Gerrit.

from airshipctl.

jezogwza avatar jezogwza commented on July 30, 2024

Will open a new issue to discuss leveraging pruning as a mechanism from controlled deletions.

from airshipctl.

eak13 avatar eak13 commented on July 30, 2024

Closing due to being reopened by abandoned patchset

from airshipctl.

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.