Skip to content

Commit 552febb

Browse files
committed
Print community edition message on start-up
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 7e281bd commit 552febb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

main.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package main
66

77
import (
88
"flag"
9+
"fmt"
910
"log"
1011
"time"
1112

@@ -58,8 +59,13 @@ func main() {
5859
flag.BoolVar(&operator, "operator", false, "Use the operator mode instead of faas-netes")
5960
flag.Parse()
6061

62+
mode := "controller"
63+
if operator {
64+
mode = "operator"
65+
}
6166
sha, release := version.GetReleaseInfo()
62-
log.Printf("Version: %s\tcommit: %s\n", release, sha)
67+
fmt.Printf("faas-netes - Community Edition (CE)\n"+
68+
"\nVersion: %s Commit: %s Mode: %s\n", release, sha, mode)
6369

6470
clientCmdConfig, err := clientcmd.BuildConfigFromFlags(masterURL, kubeconfig)
6571
if err != nil {

0 commit comments

Comments
 (0)