Skip to content

Commit 8ab3d8e

Browse files
ericstoeklalexellis
authored andcommitted
Use 'availableReplicas' instead of 'replicaCount'
Signed-off-by: Eric Stoekl <[email protected]>
1 parent b253340 commit 8ab3d8e

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

handlers/reader.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ func getServiceList(functionNamespace string, clientset *kubernetes.Clientset) (
3434

3535
labels := item.Spec.Template.Labels
3636
function := requests.Function{
37-
Name: item.Name,
38-
Replicas: replicas,
39-
Image: item.Spec.Template.Spec.Containers[0].Image,
40-
ReplicaCount: int(item.Status.ReadyReplicas),
41-
InvocationCount: 0,
42-
Labels: &labels,
37+
Name: item.Name,
38+
Replicas: replicas,
39+
Image: item.Spec.Template.Spec.Containers[0].Image,
40+
AvailableReplicas: int(item.Status.ReadyReplicas),
41+
InvocationCount: 0,
42+
Labels: &labels,
4343
}
4444

4545
functions = append(functions, function)

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

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

0 commit comments

Comments
 (0)