Comments (6)
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.
I'll take a stab at this
from airshipctl.
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.
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.
Will open a new issue to discuss leveraging pruning as a mechanism from controlled deletions.
from airshipctl.
Closing due to being reopened by abandoned patchset
from airshipctl.
Related Issues (20)
- Support multiple versions of clusterctl HOT 5
- AIAP: Document the requirements for the infrastructure builder image HOT 4
- AIAP: Create a multi-node `infra-builder` image HOT 3
- AIAP: Using the `.git` suffix on repository names causes runner pod failure HOT 2
- AIAP: support non test GPG keys HOT 5
- Provide Calico CNI IPv4/v6/Dual Stack Support in Airshipctl HOT 2
- AIAP : Support for DualStack IPv6 HOT 2
- Install latest docker version within build_gate.sh script HOT 1
- Enable extraction of target/workload cluster artifacts HOT 3
- AIAP: Shift gates to use AIAP HOT 3
- AIAP: Documentation redirect HOT 3
- source|target version replacement for qcow_bundle is missing. HOT 4
- AIAP : Add support for IPV6 infra to test Airship-in-a-pod in Zuul Gates HOT 2
- 10_build_gate.sh fails to locate ensure-docker ansible role HOT 3
- `make manifests` target doesn't work HOT 1
- Create zuul job which performs make generate/make manifests HOT 1
- Develop new kubeconfig workflow HOT 2
- Allow to resume phase plan execution from a certain phase HOT 2
- Fail to create kubeval-validator image. HOT 2
- namespace-v1.json is missing when running "airshipctl plan validate deploy-gating" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airshipctl.