Closed alexellis closed 5 years ago
go build
and go test ./handlers
works fine but it looks like there is an issue in the CI pipeline.
goreleaser: error: unknown short flag '-s', try --help
(^ That is likely unrelated to the PR.)
Bump
Sorry will check this tomorrow
Awesome, thank you Nic!
Hey @alexellis I had to merge your changes on top of my replication branch I have created a new pull request with your changes.
https://github.com/hashicorp/faas-nomad/pull/42
Would you give this a quick eyeball and I will get this merged into master, the provider is now compatible with version 0.8.1 of the gateway with this pull request.
Kind regards,
Nic
The purpose of this change is to make faas-nomad compatible with the latest version of the API Gateway in OpenFaaS. Each provider should be able to advertise the underlying provider and the version of the code. A new version of faas-provider (0.6) is vendored into the repo which brings in an optional health endpoint (turned off by default). The version is being passed to the provider from main.go.
A subsequent change should implement the health endpoint.
A unit test was added for the info endpoint using the format found for the other endpoints.
The advertised information in /system/info will be consumed by the API gateway and logged for help debugging issues. It can also be used to turn on/off UI features such as the "network" field which does not make sense for all providers.
Signed-off-by: Alex Ellis (VMware) alexellis2@gmail.com
Other comments
Nic this was tested via unit tests which I think prove the behavior works as expected, but not through bringing up a nomad environment. Please could you give it a run-through before or after merging?