-
Notifications
You must be signed in to change notification settings - Fork 350
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 PodDisruptionBudget for every integration #1787
Conversation
4be1e54
to
c11ef47
Compare
c11ef47
to
eb2a08e
Compare
eb2a08e
to
589765f
Compare
I think permissions to get, create, update the PDB resources must be added to the operator RBAC. |
Should that be in operator-role-kubernetes/openshift,yaml file ? |
Exactly, and the generated resources, like the OLM CSV updated accordingly. |
589765f
to
3b29056
Compare
f20766e
to
10a0a98
Compare
I've tested this also with knative and cron-job deployment strategies and it works as expected. |
@lburgazzoli @nicolaferraro 👋, That PR introduces the pod trait, whose purpose is to be responsible for all the aspects that directly relate to the integration pods configuration. That includes upcoming work to support:
Technically, the affinity trait should be merged into that new trait, yet we may want to keep that concern separated, at least to maintain compatibility for the 1.x lifespan. It turns out we already have traits responsible for the container and deployment aspects, but none for those of the pods. The deployment trait could have been a candidate to meet that need. However it's specific to the Deployment strategy, while the pod aspects can be shared across deployment strategies. WDYT? |
I guess this also relates to: #1657 |
Damn auto-complete, that's the one I wanted to type. Corrected my previous comment. |
I'm thinking if after we'll have #1657, we should reduce the number of traits to the bare minimum and with a very opinionated list of what can be configured via traits and leave everything else to pod templates & co |
maybe also have a flag to use a pod tamplate from a local yaml |
After thinking a bit based on this discussion, I'd suggest we introduce a |
10a0a98
to
5805f66
Compare
I refactored it back to |
5805f66
to
3ba77ff
Compare
3b2bd2a
to
eee1ade
Compare
eee1ade
to
197231c
Compare
197231c
to
72a649e
Compare
Closes: #1760
This is what I have so far. PDB is created for every integration and deleted with integration. I decided to go with new trait for the PDB but I can refactor if necessary.
I still need to create test for the trait and also I'm not sure if
IntegrationRunning
phase is the best here. Any feedback appreciated.Release Note