Skip to content

Commit 7acac8a

Browse files
author
Julian Hjortshoj
committed
volume mount protopuf updates
> - stop using deprecated required field modifier > - switch json tag for shared field to shared so that it matches the variable name > [#130471951](https://www.pivotaltracker.com/story/show/130471951)
1 parent 85c8434 commit 7acac8a

File tree

2 files changed

+34
-40
lines changed

2 files changed

+34
-40
lines changed

models/volume_mount.pb.go

Lines changed: 32 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

models/volume_mount.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ enum DeprecatedBindMountMode {
1212
}
1313

1414
message SharedDevice {
15-
required string volume_id = 1 [(gogoproto.jsontag) = "volume_id"];
15+
optional string volume_id = 1 [(gogoproto.jsontag) = "volume_id"];
1616
optional string mount_config = 2 [(gogoproto.jsontag) = "mount_config"];
1717
}
1818

@@ -26,7 +26,7 @@ message VolumeMount {
2626
optional string mode = 6 [(gogoproto.jsontag) = "mode"];
2727

2828
// oneof device {
29-
optional SharedDevice shared = 7 [(gogoproto.jsontag) = "shared_device"];
29+
optional SharedDevice shared = 7 [(gogoproto.jsontag) = "shared"];
3030
// }
3131
}
3232

0 commit comments

Comments
 (0)