Skip to content

Commit

Permalink
volume spec: fix access_mode field in examples (#24911)
Browse files Browse the repository at this point in the history
The `volume init` command creates example volume specifications. But one of the
values for `capability.access_mode` is not a valid value. Correct the example to
match the validation logic.
  • Loading branch information
tgross authored Jan 22, 2025
1 parent 6873356 commit 3e7adba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion command/asset/volume.csi.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ capability {
}

capability {
access_mode = "single-node-reader"
access_mode = "single-node-reader-only"
attachment_mode = "block-device"
}

Expand Down
2 changes: 1 addition & 1 deletion command/asset/volume.csi.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"attachment_mode": "file-system"
},
{
"access_mode": "single-node-reader",
"access_mode": "single-node-reader-only",
"attachment_mode": "block-device"
}
],
Expand Down
2 changes: 1 addition & 1 deletion command/asset/volume.host.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ capability {
}

capability {
access_mode = "single-node-reader"
access_mode = "single-node-reader-only"
attachment_mode = "block-device"
}

Expand Down
2 changes: 1 addition & 1 deletion command/asset/volume.host.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"attachment_mode": "file-system"
},
{
"access_mode": "single-node-reader",
"access_mode": "single-node-reader-only",
"attachment_mode": "block-device"
}
],
Expand Down

0 comments on commit 3e7adba

Please sign in to comment.