-
Notifications
You must be signed in to change notification settings - Fork 326
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(managed-services): add support for updateStrategy
#4952
Conversation
❗ By default, the pull request is configured to backport to all release branches.
|
/test limit=local |
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/9677816242 |
@@ -163,4 +164,60 @@ var _ = Describe("Managed services tests", Label(tests.LabelSmoke, tests.LabelBa | |||
}, testTimeouts[utils.ManagedServices]).Should(Succeed()) | |||
}) | |||
}) | |||
|
|||
It("should properly handle replace update strategy", func(ctx SpecContext) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we could add another E2E that runs in cloud environments and tries to create and update a load balancer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a good idea, but the test could be very flaky (load balancers are very slow to provision) and may require specific per-CSP tests to be meaningful.
@fcanovai, what do you think?
/test limit=local |
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/9681716329 |
/test limit=local |
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/9692909659 |
a97deab
to
d550099
Compare
Closes #4922 Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
…-pg#4952) Introduce the `updateStrategy` field to control how the operator updates a service definition. By default, the operator uses the `patch` strategy, applying changes directly to the service. Alternatively, the `recreate` strategy deletes the existing service and recreates it from the template. This is particularly useful to handle changes in cloud-based load balancers for DBaaS scenarios. Closes cloudnative-pg#4922 Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Signed-off-by: Sam Toxopeus <sam@fuga.cloud>
Introduce the
updateStrategy
field to control how the operator updates a service definition. By default, the operator uses thepatch
strategy, applying changes directly to the service. Alternatively, therecreate
strategy deletes the existing service and recreates it from the template.This is particularly useful to handle changes in cloud-based load balancers for DBaaS scenarios.
Closes #4922