Skip to content

Commit

Permalink
Remove YAML file which is not required
Browse files Browse the repository at this point in the history
There is now a helm chart and separate instructions for faasd

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Jul 14, 2021
1 parent f21d5e7 commit 4fd848e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 65 deletions.
10 changes: 7 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ import (
ptypes "github.com/openfaas/faas-provider/types"
)

// topic is the value of the "topic" annotation to look for
// on functions, to decide to include them for invocation
const topic = "cron-function"

func main() {
config, err := getControllerConfig()
if err != nil {
Expand All @@ -26,16 +30,15 @@ func main() {

sha, ver := version.GetReleaseInfo()
log.Printf("Version: %s\tCommit: %s\n", sha, ver)
log.Printf("Gateway URL: %s", config.GatewayURL)
log.Printf("Async Invocation: %v", config.AsyncFunctionInvocation)
log.Printf("Gateway URL: %s", config.GatewayURL)
log.Printf("Async Invocation: %v", config.AsyncFunctionInvocation)

invoker := types.NewInvoker(gatewayRoute(config),
types.MakeClient(config.UpstreamTimeout),
config.ContentType,
config.PrintResponse)

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

cronScheduler.Start()
Expand All @@ -50,6 +53,7 @@ func gatewayRoute(config *types.ControllerConfig) string {
if config.AsyncFunctionInvocation {
return fmt.Sprintf("%s/%s", config.GatewayURL, "async-function")
}

return fmt.Sprintf("%s/%s", config.GatewayURL, "function")
}

Expand Down
24 changes: 0 additions & 24 deletions yaml/docker-compose.yml

This file was deleted.

38 changes: 0 additions & 38 deletions yaml/kubernetes/connector-dep.yml

This file was deleted.

0 comments on commit 4fd848e

Please sign in to comment.