Skip to content

Commit 1608b11

Browse files
committed
Merge remote-tracking branch 'origin/ingress' into ingress
2 parents 45ca7ce + 9178103 commit 1608b11

File tree

3 files changed

+89
-89
lines changed

3 files changed

+89
-89
lines changed

cmd/api/api/volumes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ func volumeToOAPI(vol volumes.Volume) oapi.Volume {
289289

290290
// Convert attachments
291291
if len(vol.Attachments) > 0 {
292-
attachments := make([]oapi.VolumeAttachmentInfo, len(vol.Attachments))
292+
attachments := make([]oapi.VolumeAttachedInstance, len(vol.Attachments))
293293
for i, att := range vol.Attachments {
294-
attachments[i] = oapi.VolumeAttachmentInfo{
294+
attachments[i] = oapi.VolumeAttachedInstance{
295295
InstanceId: att.InstanceID,
296296
MountPath: att.MountPath,
297297
Readonly: att.Readonly,

lib/oapi/oapi.go

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

openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ components:
334334
description: Size in gigabytes
335335
example: 10
336336

337-
VolumeAttachmentInfo:
337+
VolumeAttachedInstance:
338338
type: object
339339
required: [instance_id, mount_path, readonly]
340340
properties:
@@ -371,7 +371,7 @@ components:
371371
type: array
372372
description: List of current attachments (empty if not attached)
373373
items:
374-
$ref: "#/components/schemas/VolumeAttachmentInfo"
374+
$ref: "#/components/schemas/VolumeAttachedInstance"
375375
created_at:
376376
type: string
377377
format: date-time

0 commit comments

Comments
 (0)