Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Commit

Permalink
Adding a horrible hack to fake availableReplicas
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Gnagy <[email protected]>
  • Loading branch information
jgnagy committed Jan 5, 2019
1 parent 0f25a85 commit 24c481e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions handlers/replicas.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ func MakeReplicaReader(client rancher.BridgeClient) VarsHandler {
return
}

found.AvailableReplicas = 1

functionBytes, _ := json.Marshal(found)
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(200)
Expand Down
3 changes: 3 additions & 0 deletions vendor/github.com/alexellis/faas/gateway/requests/requests.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 24c481e

Please sign in to comment.