Skip to content

Commit

Permalink
fix: image_spec should not be optional
Browse files Browse the repository at this point in the history
We want to imply this is required particularly after volume_name is deprecated.

Signed-off-by: Chris Goller <[email protected]>
  • Loading branch information
goller committed May 16, 2024
1 parent aa24501 commit eb71ece
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion proto/depot/cloud/v3/machine.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ message RegisterMachineResponse {
// Store at /etc/ceph/ceph.conf
string ceph_conf = 4;
// If the image_spec is set use instead of constructing with the volume_name.
optional string image_spec = 5;
string image_spec = 5;
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/gen/ts/depot/cloud/v3/machine_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,9 @@ export class RegisterMachineResponse_Mount_CephVolume extends Message<RegisterMa
/**
* If the image_spec is set use instead of constructing with the volume_name.
*
* @generated from field: optional string image_spec = 5;
* @generated from field: string image_spec = 5;
*/
imageSpec?: string
imageSpec = ''

constructor(data?: PartialMessage<RegisterMachineResponse_Mount_CephVolume>) {
super()
Expand All @@ -396,7 +396,7 @@ export class RegisterMachineResponse_Mount_CephVolume extends Message<RegisterMa
{no: 2, name: 'client_name', kind: 'scalar', T: 9 /* ScalarType.STRING */},
{no: 3, name: 'key', kind: 'scalar', T: 9 /* ScalarType.STRING */},
{no: 4, name: 'ceph_conf', kind: 'scalar', T: 9 /* ScalarType.STRING */},
{no: 5, name: 'image_spec', kind: 'scalar', T: 9 /* ScalarType.STRING */, opt: true},
{no: 5, name: 'image_spec', kind: 'scalar', T: 9 /* ScalarType.STRING */},
])

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegisterMachineResponse_Mount_CephVolume {
Expand Down

0 comments on commit eb71ece

Please sign in to comment.