-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create webhook to trim messages from the status object #57
Comments
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? |
Rather creating a webhook for this. I think we can add a check in reconcillation flow i.e opentelemetry
WDYT @jpkrohling |
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 |
I'm closing this, as I think we should instead be recording events instead of adding messages for this type of content. |
As part of #55, we added a new array of messages to the Status object. For long lived instances, this might potentially become a big list of messages, so, we might want to consider trimming it to the last N messages.
Questions:
The text was updated successfully, but these errors were encountered: