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

Faking availableReplicas to enable usage of the gateway UI #5

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .DEREK.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
redirect: https://raw.githubusercontent.com/openfaas/faas/master/.DEREK.yml
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 = found.Replicas
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable. But could you leave a comment about faking the information? Thanks ;)


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.