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

Update to faas 0.8.1 #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

roomthirteen
Copy link

Hi @alexellis,

this is my pull request to make faas-rancher compatible with the new faas ui, introducing not only the availableReplicas property in the function list but also all other new provider endpoints. There are two shortfalls:

  1. Missing tests because i do not understand the go testing framework due my limitation in the understanding of the go programming language.

  2. Async rancher service upgrade. Redeploying a function will be done in an async manner due to rancher taking quite some time to upgrade a service. When the redeployment leads to an error, it will leave the rancher service in an inconsistent state instead of doing a rollback which in my opinion is not an issue, since you want to investigate why the redeployment of the function did not work.

What do you think?

Change the repository of openfaas vendor packages to point to the openfaas github user instead of alexellis account.

Signed-off-by: Benjamin Seibert <[email protected]>
Use openfaas 0.8.1 vendors.

Signed-off-by: Benjamin Seibert <[email protected]>
To make a function availabe in the 0.8.1 UI we need to set the AvailableReplicas. For now we just use the number of existing replicas.

Signed-off-by: Benjamin Seibert <[email protected]>
Implemented the following new handler endpoints:

* health
* info
* secret
* update

Signed-off-by: Benjamin Seibert <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant