Skip to content

Revert syncer back to SSA patch to correctly remove fields #1530

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Danil-Grigorev
Copy link
Contributor

@Danil-Grigorev Danil-Grigorev commented Jul 9, 2025

What this PR does / why we need it:
Merge patch does not support removal of the fields. This change reverts syncer to the original SSA patch implementation, to allow CAPIProvider to always enforce spec of the downstream resource.

To support fields removal in syncer, an alternative is to use patch.Helper implementation, to allow CAPIProvider to always enforce spec of the downstream resource, but it also enforces status changes, which overrides downstream provider status. SSA patch does not have this side effect, and is simpler than implementing similar logic.

This change should also stabilize the short e2e CI, where failing OCI fetchConfig url was persisted, causing test cases running after the one which set the field fail on expectation of docker provider being healthy.

Depends on #1548 (comment)

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@anmazzotti anmazzotti added area/operator kind/bug Something isn't working labels Jul 9, 2025
@Danil-Grigorev Danil-Grigorev added area/api Indicates an issue or PR relates to the APIs ok-to-test Allow CI run on PR and removed area/operator labels Jul 9, 2025
@Danil-Grigorev Danil-Grigorev force-pushed the ssa-patch-syncer-remove-field branch from 8826d59 to 4fe3bd2 Compare July 10, 2025 06:17
@Danil-Grigorev Danil-Grigorev changed the title Revert syncer back to SSA patch to correctly remove fields Use patch helper to support fields removal Jul 10, 2025
@Danil-Grigorev Danil-Grigorev force-pushed the ssa-patch-syncer-remove-field branch from 4fe3bd2 to 34d6ded Compare July 10, 2025 06:22
@Danil-Grigorev Danil-Grigorev marked this pull request as ready for review July 10, 2025 06:22
@Danil-Grigorev Danil-Grigorev requested a review from a team as a code owner July 10, 2025 06:22
@Danil-Grigorev Danil-Grigorev force-pushed the ssa-patch-syncer-remove-field branch 2 times, most recently from 4fe3bd2 to 8826d59 Compare July 10, 2025 06:35
@Danil-Grigorev Danil-Grigorev changed the title Use patch helper to support fields removal Revert syncer back to SSA patch to correctly remove fields Jul 10, 2025
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
@Danil-Grigorev Danil-Grigorev force-pushed the ssa-patch-syncer-remove-field branch from 8826d59 to 54a8b85 Compare July 17, 2025 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api Indicates an issue or PR relates to the APIs kind/bug Something isn't working ok-to-test Allow CI run on PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants