Skip to content

Commit

Permalink
log the version string on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
tzneal committed Mar 24, 2022
1 parent 24bd161 commit c377fca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package main
import (
"context"
"fmt"
"github.com/aws/karpenter/pkg/utils/project"

"github.com/go-logr/zapr"
"k8s.io/apimachinery/pkg/runtime"
Expand Down Expand Up @@ -73,6 +74,7 @@ func main() {
ctx = injection.WithConfig(ctx, config)
ctx = injection.WithOptions(ctx, opts)

logging.FromContext(ctx).Infof("Initializing with version %s", project.Version)
// Set up controller runtime controller
cloudProvider := registry.NewCloudProvider(ctx, cloudprovider.Options{ClientSet: clientSet})
cloudProvider = cloudprovidermetrics.Decorate(cloudProvider)
Expand Down

0 comments on commit c377fca

Please sign in to comment.