Comments (4)
The problem with doing it at the reconciliation is that it will trigger an object update, which will trigger another reconciliation routine. It's not bad per se, but a webhook would probably be cleaner.
Another thing to consider is using events instead of this. We have this pattern introduced recently: #215 (comment)
More on this: https://book-v1.book.kubebuilder.io/beyond_basics/creating_events.html
from opentelemetry-operator.
Rather than webhook, can't we just trim at the point a new message is added (i.e. have a common function that appends the messages to the status object and cleans up when necessary)? Think restricting by number may be adequate initially, as it shouldn't happen that often - although I guess it will depend upon how many messages are reported per version upgrade. May be start with 20?
from opentelemetry-operator.
Rather creating a webhook for this. I think we can add a check in reconcillation flow i.e opentelemetry Self()
. If Messages array size is > 10
, then drop the oldest messages i.e.
if len(messages) > 10 {
diff := len(messages) - 10
messages = messages[diff:]
}
WDYT @jpkrohling
from opentelemetry-operator.
I'm closing this, as I think we should instead be recording events instead of adding messages for this type of content.
from opentelemetry-operator.
Related Issues (20)
- Add com.redhat.openshift.versions annotation to the manifest
- Failed to select an OpenTelemetry Collector instance for pod's sidecar HOT 4
- Detection of Python packages during an autoinstrumentation with Operator HOT 3
- Creating custom spans on top of auto-instrumentation HOT 4
- Documentation for `observability.metrics.enableMetrics` truncated HOT 1
- Release the operator v0.93.0 HOT 5
- HPA is only added with autoscaler setting, the reverse is ignored HOT 1
- Document upgrade strategy for autoinstrumentation
- Environment variable interpolation in bridge config
- Change instrumentation feature gates into normal command-line flags HOT 6
- Operator errors when opamp bridge image is pinned to a specific sha HOT 2
- Updating the AutoScale/HPA causing the pods to redeploy HOT 4
- PVC does not increase after initially set HOT 1
- Replace the create-rbac-permissions flag by just checking if the SA has permissions
- WATCH_NAMESPACE doesn't work for a single namespace HOT 2
- v1alpha2: make getConfigMapSHA a method of the new CRD HOT 1
- v1alpha2: Minimise signatures of object generation functions
- Exposed Service Ports do not work for udplog/test operator name and also for udplog
- Must override target allocator name when app/name is overridden HOT 7
- Wrong java instrumentation version in 0.93.0 operator release notes 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.