Skip to content

Commit

Permalink
Save attachmentType
Browse files Browse the repository at this point in the history
  • Loading branch information
xxx0624 committed Sep 15, 2023
1 parent 9eb696c commit 274a379
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ecs-agent/acs/session/attach_resource_responder.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func (r *attachResourceResponder) handleAttachMessage(message *ecsacs.ConfirmAtt
Status: status.AttachmentNone,
},
AttachmentProperties: attachmentProperties,
AttachmentType: aws.StringValue(message.Attachment.AttachmentType),
})

// Send ACK.
Expand Down
2 changes: 1 addition & 1 deletion ecs-agent/api/resource/resource_attachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
type ResourceAttachment struct {
attachmentinfo.AttachmentInfo
// AttachmentType is the type of the resource attachment which can be "AmazonElasticBlockStorage" for EBS attach tasks.
AttachmentType string
AttachmentType string `json:"AttachmentType,omitempty"`
// AttachmentProperties is a map storing (name, value) representation of attachment properties.
// Each pair is a set of property of one resource attachment.
// The "FargateResourceId" is a property name that will be present for all resources.
Expand Down
2 changes: 1 addition & 1 deletion ecs-agent/api/resource/resource_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ const (
// ElasticBlockStorage is one of the resource types in the properties list of the attachment payload message for the
// EBS volume on firecracker.
ElasticBlockStorage = "ElasticBlockStorage"
// AmazonElasticBlockStorage is one of the attachment types in the attachment payload message for EBS attach tasks on warmpool.
// AmazonElasticBlockStorage is one of the attachment types in the attachment payload message for EBS attach tasks.
AmazonElasticBlockStorage = "AmazonElasticBlockStorage"
)

0 comments on commit 274a379

Please sign in to comment.