Skip to content

Commit 71ece71

Browse files
committed
Code review: re-vendor and update to AvailableReplicas
Signed-off-by: Alex Ellis (VMware) <[email protected]>
1 parent 8ab3d8e commit 71ece71

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

Gopkg.lock

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

Gopkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[[constraint]]
77
name = "github.com/openfaas/faas"
8-
version = "0.7.0"
8+
version = "0.7.3"
99

1010
[[constraint]]
1111
name = "github.com/openfaas/faas-provider"

handlers/reader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func getServiceList(functionNamespace string, clientset *kubernetes.Clientset) (
3737
Name: item.Name,
3838
Replicas: replicas,
3939
Image: item.Spec.Template.Spec.Containers[0].Image,
40-
AvailableReplicas: int(item.Status.ReadyReplicas),
40+
AvailableReplicas: uint64(item.Status.AvailableReplicas),
4141
InvocationCount: 0,
4242
Labels: &labels,
4343
}

vendor/github.com/openfaas/faas/gateway/requests/requests.go

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

0 commit comments

Comments
 (0)