mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-03-05 19:23:38 +00:00
Encode git version info into binary and user agent
Signed-off-by: Monis Khan <mok@vmware.com>
This commit is contained in:
@@ -8,10 +8,15 @@ package main
|
||||
import (
|
||||
"os"
|
||||
|
||||
"k8s.io/client-go/pkg/version"
|
||||
"k8s.io/client-go/rest"
|
||||
"k8s.io/klog/v2"
|
||||
|
||||
"github.com/suzerain-io/placeholder-name/cmd/placeholder-name/app"
|
||||
)
|
||||
|
||||
func main() {
|
||||
klog.Infof("Running %s at %#v", rest.DefaultKubernetesUserAgent(), version.Get())
|
||||
if err := app.New(os.Args[1:], os.Stdout, os.Stderr).Run(); err != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user