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 @@ -179,6 +179,8 @@ func InitFlags(fs *pflag.FlagSet) {
179179// +kubebuilder:rbac:groups=authorization.k8s.io,resources=subjectaccessreviews,verbs=create
180180
181181func main () {
182+ setupLog .Info (fmt .Sprintf ("Version: %+v" , version .Get ().String ()))
183+
182184 InitFlags (pflag .CommandLine )
183185 pflag .CommandLine .SetNormalizeFunc (cliflag .WordSepNormalizeFunc )
184186 pflag .CommandLine .AddGoFlagSet (flag .CommandLine )
Original file line number Diff line number Diff line change @@ -189,6 +189,8 @@ func InitFlags(fs *pflag.FlagSet) {
189189// +kubebuilder:rbac:groups=authorization.k8s.io,resources=subjectaccessreviews,verbs=create
190190
191191func main () {
192+ setupLog .Info (fmt .Sprintf ("Version: %+v" , version .Get ().String ()))
193+
192194 InitFlags (pflag .CommandLine )
193195 pflag .CommandLine .SetNormalizeFunc (cliflag .WordSepNormalizeFunc )
194196 pflag .CommandLine .AddGoFlagSet (flag .CommandLine )
Original file line number Diff line number Diff line change @@ -253,6 +253,8 @@ func InitFlags(fs *pflag.FlagSet) {
253253// +kubebuilder:rbac:groups=authorization.k8s.io,resources=subjectaccessreviews,verbs=create
254254
255255func main () {
256+ setupLog .Info (fmt .Sprintf ("Version: %+v" , version .Get ().String ()))
257+
256258 InitFlags (pflag .CommandLine )
257259 pflag .CommandLine .SetNormalizeFunc (cliflag .WordSepNormalizeFunc )
258260 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 @@ -180,6 +180,8 @@ func InitFlags(fs *pflag.FlagSet) {
180180// +kubebuilder:rbac:groups=authorization.k8s.io,resources=subjectaccessreviews,verbs=create
181181
182182func main () {
183+ setupLog .Info (fmt .Sprintf ("Version: %+v" , version .Get ().String ()))
184+
183185 if _ , err := os .ReadDir ("/tmp/" ); err != nil {
184186 setupLog .Error (err , "Unable to start manager" )
185187 os .Exit (1 )
You can’t perform that action at this time.
0 commit comments