Skip to content

replication: replace deprecated volume_id with reserved field#86

Open
santhoshatdell wants to merge 1 commit into
csi-addons:mainfrom
santhoshatdell:pvt/volume-id-reserved
Open

replication: replace deprecated volume_id with reserved field#86
santhoshatdell wants to merge 1 commit into
csi-addons:mainfrom
santhoshatdell:pvt/volume-id-reserved

Conversation

@santhoshatdell

@santhoshatdell santhoshatdell commented Jul 10, 2026

Copy link
Copy Markdown

The volume_id field (field number 1) in all replication request messages was deprecated in favor of replication_source. Replace the deprecated field declaration with reserved 1 to fully remove it from the generated Go code.

This prevents validation middleware (e.g. gocsi spec validator) from rejecting replication RPCs due to an empty volume_id field, which is the expected state when using the newer replication_source field.

Fixes: #85

  • Proto compilation — already verified: make in replication/ succeeds and regenerates all files
  • Generated code — verified: GetVolumeId() is absent from all 6 request types in the generated .pb.go
  • Wire compatibility — no breaking change; reserved 1 is the standard protobuf pattern for safe field removal
  • Downstream validation — kubernetes-csi-addons internal proto already uses the same pattern (reserved 1; // Deprecated "volume_id")

@mergify mergify Bot added the design Adds or updates an operation or service label Jul 10, 2026
The volume_id field (field number 1) in all replication request
messages was deprecated in favor of replication_source. Replace
the deprecated field declaration with `reserved 1` to fully remove
it from the generated Go code.

This prevents validation middleware (e.g. gocsi spec validator) from
rejecting replication RPCs due to an empty volume_id field, which
is the expected state when using the newer replication_source field.

Fixes: csi-addons#85
Signed-off-by: Santhosh Lakshmanan <Santhosh.Lakshmanan@dell.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

design Adds or updates an operation or service

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove deprecated volume_id field from replication request messages

1 participant