Skip to content

Commit 4fd848e

Browse files
committed
Remove YAML file which is not required
There is now a helm chart and separate instructions for faasd Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent f21d5e7 commit 4fd848e

File tree

3 files changed

+7
-65
lines changed

3 files changed

+7
-65
lines changed

main.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ import (
1818
ptypes "github.com/openfaas/faas-provider/types"
1919
)
2020

21+
// topic is the value of the "topic" annotation to look for
22+
// on functions, to decide to include them for invocation
23+
const topic = "cron-function"
24+
2125
func main() {
2226
config, err := getControllerConfig()
2327
if err != nil {
@@ -26,16 +30,15 @@ func main() {
2630

2731
sha, ver := version.GetReleaseInfo()
2832
log.Printf("Version: %s\tCommit: %s\n", sha, ver)
29-
log.Printf("Gateway URL: %s", config.GatewayURL)
30-
log.Printf("Async Invocation: %v", config.AsyncFunctionInvocation)
33+
log.Printf("Gateway URL: %s", config.GatewayURL)
34+
log.Printf("Async Invocation: %v", config.AsyncFunctionInvocation)
3135

3236
invoker := types.NewInvoker(gatewayRoute(config),
3337
types.MakeClient(config.UpstreamTimeout),
3438
config.ContentType,
3539
config.PrintResponse)
3640

3741
cronScheduler := cfunction.NewScheduler()
38-
topic := "cron-function"
3942
interval := time.Second * 10
4043

4144
cronScheduler.Start()
@@ -50,6 +53,7 @@ func gatewayRoute(config *types.ControllerConfig) string {
5053
if config.AsyncFunctionInvocation {
5154
return fmt.Sprintf("%s/%s", config.GatewayURL, "async-function")
5255
}
56+
5357
return fmt.Sprintf("%s/%s", config.GatewayURL, "function")
5458
}
5559

yaml/docker-compose.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

yaml/kubernetes/connector-dep.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)