-
Notifications
You must be signed in to change notification settings - Fork 46
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
feat: add activation-id label for kubernetes resources #641
Conversation
@kurokobo, your a legend this PR will enable moving forward with implementing!!! |
Signed-off-by: kurokobo <[email protected]>
rebased |
@Alex-Izquierdo any chance of having this reviewed and merged? |
Hi. @kurokobo Thank you very much for your contribution. I am not against it, but I need to discuss it with the team first and how we integrate this with our current plans. We are really aware of this problem. This change would also have a very short life as it would be changed soon due to the new features we are working on, the container engine needs to be agnostic of the rulebook type (there will be a new job type in addition to activation). |
@Alex-Izquierdo, thanks for your time for progressing this PR. Same same for @kurokobo for your work too. May you legends have a cold pillow when you try to sleep tonight!!! Although the changes in this PR would make EDA a viable solution within the kubernetes environment, are the new features "coming soon (timeframe?)" going to take into account that a service name for instance must remain the same for the life-cycle of the pod? this includes having permanent labels that don't change? as without connectivity will be lost as it is now. |
Hi @jon-nfc thanks for your nice words I understand that the current behavior is problematic, but there is no other option than to wait a while for a final solution that fits in with the upcoming features. @mkanoor @hsong-rh I think adding a new label like "<parent_type>: <parent_id>" is something feasible, thoughts? |
@Alex-Izquierdo That said, other high-priority tasks (troubleshooting, incident response, etc.) often make the 'ready soon' schedule not ready at all, so if it's going to take months against your plan, please use this PR as a short-term solution. I wish you the best of luck with the development of the new feature 😃 |
Closed in favor of #704 |
Closes #616
In the current implementation, the name and label for Job/Pod/Service changes with each restart of the Rulebook Activation. This is a behavior that compromises stability when exposing the Service to the outside of the cluster.
This PR adds the Activation ID as an immutable label that does not change upon restart. This allows users to create arbitrarily named Service with this label as the
selector
, and arbitrarily named Ingress that use it.There are no side effects because this do not remove nor replace existing labels, but simply add to them.
Changes:
activation-id
to Job, Pod, Service, Secret that created by enabling Rulebook ActivationTests:
By enabling Rulebook Activation (ID: 5) that listens inbound connection on 5000, following resources are created:
By creating the following Service and Inrgess that refer to this new label, we will not need to modify them after the Rulebook Activation is restarted.