Skip to content

bundle: fix CSV replaces field not being applied - #25

Merged
Rakshith-R merged 1 commit into
RamenDR:mainfrom
Rakshith-R:worktree-fix-replaces
Jul 28, 2026
Merged

bundle: fix CSV replaces field not being applied#25
Rakshith-R merged 1 commit into
RamenDR:mainfrom
Rakshith-R:worktree-fix-replaces

Conversation

@Rakshith-R

Copy link
Copy Markdown
Collaborator

Three bugs prevented the replaces field from appearing in the generated CSV:

  • REPLACES variable was never defined in the Makefile
  • JSON patch used "replace" op on a non-existent path (RFC 6902 requires the path to exist); changed to "add"
  • Patch target name was v0.0.1 but base CSV name is v0.0.0

Also guard the patch with ifneq so an empty REPLACES does not inject a blank replaces field, and remove the broken seed patch from the bases kustomization.yaml.

Assisted-by: Claude noreply@anthropic.com

Three bugs prevented the replaces field from appearing in the
generated CSV:
- REPLACES variable was never defined in the Makefile
- JSON patch used "replace" op on a non-existent path (RFC 6902
  requires the path to exist); changed to "add"
- Patch target name was v0.0.1 but base CSV name is v0.0.0

Also guard the patch with ifneq so an empty REPLACES does not inject
a blank replaces field, and remove the broken seed patch from the
bases kustomization.yaml.

Assisted-by: Claude <noreply@anthropic.com>
Signed-off-by: Rakshith R <rar@redhat.com>
@Rakshith-R
Rakshith-R force-pushed the worktree-fix-replaces branch from bd6eea4 to 4ede8f4 Compare July 28, 2026 13:11
@Rakshith-R
Rakshith-R merged commit f07c99b into RamenDR:main Jul 28, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant