Comments (5)
This would allow deletion of the resource, but would leave the cleanup of the underlying resources to the user, including removing finalizers when applicable
Not sure we do anything at all in our code. When a CR is deleted, all the resources that are owned by this CR are deleted automatically. In our reconciliation function, we'll see the delete event but won't find the CR, in which case we'll just return. So, I think your idea would work nicely.
opentelemetry-operator/controllers/opentelemetrycollector_controller.go
Lines 116 to 125 in 543ff61
from opentelemetry-operator.
Great! This will be straightforward to implement then, @jpkrohling. This is now in my backlog to tackle.
from opentelemetry-operator.
Go ahead! Can you please double-check the kubebuilder docs to see if they have a recommendation about this? What we have right now is following what was bootstrapped by kubebuilder when I first bootstrapped this operator, and things might have changed since then.
from opentelemetry-operator.
@jpkrohling - One potential thought is to split the "validating-webhook-configuration" into two validating webhooks. The second one would be for the "DELETE" and would have failurePolicy: Ignore
. This would allow deletion of the resource, but would leave the cleanup of the underlying resources to the user, including removing finalizers when applicable. Thoughts?
from opentelemetry-operator.
@jpkrohling I can work on this!
from opentelemetry-operator.
Related Issues (20)
- Bump Apache httpd version
- CrashLoopBackOff of demo collector pod
- Apache httpd / nginx auto-instrumentation image for arm64 arch HOT 2
- Bulk update of Instrumentation Version
- Flaky CI: End-to-end tests / End-to-end tests (1.23, e2e-pdb) HOT 1
- Target Allocator is not capable of scaling out with least-weighted strategy HOT 3
- webhook service not found
- Prevent instrumentation resource limits to be re-configured during Operator upgrade HOT 9
- support multi container instrumentation in go auto instrumentation
- There's no appProtocol for Opencensus receiver HOT 1
- Allow the bridge to report on individual collector pods
- SecurityContext vs PodSecurityContext in the target allocator CR HOT 1
- Add PodSecurityContext to Target Allocator HOT 3
- CRD Instrumentation for node app fails HOT 8
- Release the operator v0.92.0 HOT 1
- Enable RBAC creation by default HOT 2
- Issue with NestJs operator autoinstrumentation HOT 9
- Add ability to set rolloutstrategy for deployment HOT 1
- [opentelemetry-operator] - Add support for imagePullSecrets for collectors HOT 3
- Server time difference affects link accuracy HOT 1
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 opentelemetry-operator.