aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2017-01-27 19:25:00 -0800
committerChristine Dodrill <me@christine.website>2017-01-27 19:25:00 -0800
commit0210fc845a0f47b7c41aca2a492e4b321a5877e9 (patch)
treec929d2385e3ab82c78062a3fb16d8922586c480d
parent576dd6ef0ca6653a09a7893328a3648206fb57a9 (diff)
downloadx-0210fc845a0f47b7c41aca2a492e4b321a5877e9.tar.xz
x-0210fc845a0f47b7c41aca2a492e4b321a5877e9.zip
dockerswarm-svcd: report instance count
-rw-r--r--svc/cmd/svcd/dockerswarm-svcd/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/svc/cmd/svcd/dockerswarm-svcd/main.go b/svc/cmd/svcd/dockerswarm-svcd/main.go
index d0a91b8..e03d86a 100644
--- a/svc/cmd/svcd/dockerswarm-svcd/main.go
+++ b/svc/cmd/svcd/dockerswarm-svcd/main.go
@@ -128,6 +128,7 @@ func (s *server) List(ctx context.Context, params *svc.AppsListParams) (*svc.App
Environment: env,
Labels: ssvc.Spec.Labels,
AuthorizedUsers: au,
+ Instances: int32(*ssvc.Spec.Mode.Replicated.Replicas),
})
}