File tree Expand file tree Collapse file tree 5 files changed +11
-0
lines changed Expand file tree Collapse file tree 5 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,8 @@ func InitFlags(fs *pflag.FlagSet) {
181181// +kubebuilder:rbac:groups=authorization.k8s.io,resources=subjectaccessreviews,verbs=create
182182
183183func main () {
184+ setupLog .Info (fmt .Sprintf ("Version: %+v" , version .Get ().String ()))
185+
184186 InitFlags (pflag .CommandLine )
185187 pflag .CommandLine .SetNormalizeFunc (cliflag .WordSepNormalizeFunc )
186188 pflag .CommandLine .AddGoFlagSet (flag .CommandLine )
Original file line number Diff line number Diff line change @@ -198,6 +198,8 @@ func InitFlags(fs *pflag.FlagSet) {
198198// +kubebuilder:rbac:groups=authorization.k8s.io,resources=subjectaccessreviews,verbs=create
199199
200200func main () {
201+ setupLog .Info (fmt .Sprintf ("Version: %+v" , version .Get ().String ()))
202+
201203 InitFlags (pflag .CommandLine )
202204 pflag .CommandLine .SetNormalizeFunc (cliflag .WordSepNormalizeFunc )
203205 pflag .CommandLine .AddGoFlagSet (flag .CommandLine )
Original file line number Diff line number Diff line change @@ -270,6 +270,8 @@ func InitFlags(fs *pflag.FlagSet) {
270270// +kubebuilder:rbac:groups=authorization.k8s.io,resources=subjectaccessreviews,verbs=create
271271
272272func main () {
273+ setupLog .Info (fmt .Sprintf ("Version: %+v" , version .Get ().String ()))
274+
273275 InitFlags (pflag .CommandLine )
274276 pflag .CommandLine .SetNormalizeFunc (cliflag .WordSepNormalizeFunc )
275277 pflag .CommandLine .AddGoFlagSet (flag .CommandLine )
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ package main
2323import (
2424 "context"
2525 "flag"
26+ "fmt"
2627 "os"
2728 goruntime "runtime"
2829 "time"
@@ -165,6 +166,8 @@ func InitFlags(fs *pflag.FlagSet) {
165166// +kubebuilder:rbac:groups=authorization.k8s.io,resources=subjectaccessreviews,verbs=create
166167
167168func main () {
169+ setupLog .Info (fmt .Sprintf ("Version: %+v" , version .Get ().String ()))
170+
168171 // Initialize and parse command line flags.
169172 InitFlags (pflag .CommandLine )
170173 pflag .CommandLine .SetNormalizeFunc (cliflag .WordSepNormalizeFunc )
Original file line number Diff line number Diff line change @@ -181,6 +181,8 @@ func InitFlags(fs *pflag.FlagSet) {
181181// +kubebuilder:rbac:groups=authorization.k8s.io,resources=subjectaccessreviews,verbs=create
182182
183183func main () {
184+ setupLog .Info (fmt .Sprintf ("Version: %+v" , version .Get ().String ()))
185+
184186 if _ , err := os .ReadDir ("/tmp/" ); err != nil {
185187 setupLog .Error (err , "Unable to start manager" )
186188 os .Exit (1 )
You can’t perform that action at this time.
0 commit comments