Skip to content

Commit d736d78

Browse files
committed
Add Labels to SwarmNode nginx-proxy#303 nginx-proxy#303
1 parent e5fb8a0 commit d736d78

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

context.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ type SwarmNode struct {
135135
ID string
136136
Name string
137137
Address Address
138+
Labels map[string]string
138139
}
139140

140141
type Mount struct {

generator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ func (g *generator) getContainers() ([]*RuntimeContainer, error) {
434434
runtimeContainer.Node.Address = Address{
435435
IP: container.Node.IP,
436436
}
437+
runtimeContainer.Node.Labels = container.Node.Labels
437438
}
438439

439440
for _, v := range container.Mounts {

0 commit comments

Comments
 (0)