Skip to content

fix(operator): update ConfigurationPlan in-place on spec update - #102

Open
Vaishnav88sk wants to merge 1 commit into
reshaprio:mainfrom
Vaishnav88sk:fix-configurationplan-update-inplace
Open

Vaishnav88sk wants to merge 1 commit into
reshaprio:mainfrom
Vaishnav88sk:fix-configurationplan-update-inplace

Conversation

@Vaishnav88sk

Copy link
Copy Markdown
Member

Description

Updates ConfigurationPlanReconciler to perform in-place updates on existing ConfigurationPlans when the custom resource spec changes, instead of creating a new plan and deleting the old one.

fixes #100

Changes

  • Call api.updateConfigPlan(currentPlanId, remotePlan) when alreadyImported is true.
  • Fall back to recreating the plan if updateConfigPlan returns HTTP 404.
  • Guard resource.getMetadata().getAnnotations() against null values.
  • Added unit tests for in-place updates and 404 recreation fallback.

Signed-off-by: Vaishnav88sk <vaishnavsk8804@gmail.com>
@lbroudoux lbroudoux added bug Something isn't working theme/operator labels Nov 2, 2026
@lbroudoux lbroudoux added this to the 0.0.5 milestone Nov 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working theme/operator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: update ConfigurationPlan in-place instead of recreate-and-delete

2 participants