Skip to content

Commit 5d97fe9

Browse files
committed
print version at startup
1 parent 9e9ab0f commit 5d97fe9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmd/controller/main.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ import (
2020
"sigs.k8s.io/controller-runtime/pkg/source"
2121
)
2222

23+
const (
24+
Version = "0.1.0"
25+
)
26+
2327
var (
2428
log = logf.Log.WithName("kapp-controller")
2529
ctrlConcurrency = 10
@@ -33,6 +37,7 @@ func main() {
3337

3438
logf.SetLogger(zap.Logger(false))
3539
entryLog := log.WithName("entrypoint")
40+
entryLog.Info("kapp-controller", "version", Version)
3641

3742
entryLog.Info("setting up manager")
3843

@@ -44,7 +49,7 @@ func main() {
4449
os.Exit(1)
4550
}
4651

47-
entryLog.Info("Setting up controllers")
52+
entryLog.Info("setting up controller")
4853

4954
coreClient, err := kubernetes.NewForConfig(restConfig)
5055
if err != nil {

0 commit comments

Comments
 (0)