Skip to content

Commit

Permalink
backport of commit 5ac476d
Browse files Browse the repository at this point in the history
  • Loading branch information
deverton-godaddy committed May 23, 2023
1 parent 6d87ea8 commit 34a6b41
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/allocations.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ type Allocation struct {
AllocModifyIndex uint64
CreateTime int64
ModifyTime int64
NetworkStatus *AllocNetworkStatus
}

// AllocationMetric is used to deserialize allocation metrics.
Expand Down Expand Up @@ -396,6 +397,15 @@ type AllocDeploymentStatus struct {
ModifyIndex uint64
}

// AllocNetworkStatus captures the status of an allocation's network during runtime.
// Depending on the network mode, an allocation's address may need to be known to other
// systems in Nomad such as service registration.
type AllocNetworkStatus struct {
InterfaceName string
Address string
DNS *DNSConfig
}

type AllocatedResources struct {
Tasks map[string]*AllocatedTaskResources
Shared AllocatedSharedResources
Expand Down

0 comments on commit 34a6b41

Please sign in to comment.