File tree 5 files changed +11
-0
lines changed 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) {
181
181
// +kubebuilder:rbac:groups=authorization.k8s.io,resources=subjectaccessreviews,verbs=create
182
182
183
183
func main () {
184
+ setupLog .Info (fmt .Sprintf ("Version: %+v" , version .Get ().String ()))
185
+
184
186
InitFlags (pflag .CommandLine )
185
187
pflag .CommandLine .SetNormalizeFunc (cliflag .WordSepNormalizeFunc )
186
188
pflag .CommandLine .AddGoFlagSet (flag .CommandLine )
Original file line number Diff line number Diff line change @@ -198,6 +198,8 @@ func InitFlags(fs *pflag.FlagSet) {
198
198
// +kubebuilder:rbac:groups=authorization.k8s.io,resources=subjectaccessreviews,verbs=create
199
199
200
200
func main () {
201
+ setupLog .Info (fmt .Sprintf ("Version: %+v" , version .Get ().String ()))
202
+
201
203
InitFlags (pflag .CommandLine )
202
204
pflag .CommandLine .SetNormalizeFunc (cliflag .WordSepNormalizeFunc )
203
205
pflag .CommandLine .AddGoFlagSet (flag .CommandLine )
Original file line number Diff line number Diff line change @@ -270,6 +270,8 @@ func InitFlags(fs *pflag.FlagSet) {
270
270
// +kubebuilder:rbac:groups=authorization.k8s.io,resources=subjectaccessreviews,verbs=create
271
271
272
272
func main () {
273
+ setupLog .Info (fmt .Sprintf ("Version: %+v" , version .Get ().String ()))
274
+
273
275
InitFlags (pflag .CommandLine )
274
276
pflag .CommandLine .SetNormalizeFunc (cliflag .WordSepNormalizeFunc )
275
277
pflag .CommandLine .AddGoFlagSet (flag .CommandLine )
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ package main
23
23
import (
24
24
"context"
25
25
"flag"
26
+ "fmt"
26
27
"os"
27
28
goruntime "runtime"
28
29
"time"
@@ -165,6 +166,8 @@ func InitFlags(fs *pflag.FlagSet) {
165
166
// +kubebuilder:rbac:groups=authorization.k8s.io,resources=subjectaccessreviews,verbs=create
166
167
167
168
func main () {
169
+ setupLog .Info (fmt .Sprintf ("Version: %+v" , version .Get ().String ()))
170
+
168
171
// Initialize and parse command line flags.
169
172
InitFlags (pflag .CommandLine )
170
173
pflag .CommandLine .SetNormalizeFunc (cliflag .WordSepNormalizeFunc )
Original file line number Diff line number Diff line change @@ -181,6 +181,8 @@ func InitFlags(fs *pflag.FlagSet) {
181
181
// +kubebuilder:rbac:groups=authorization.k8s.io,resources=subjectaccessreviews,verbs=create
182
182
183
183
func main () {
184
+ setupLog .Info (fmt .Sprintf ("Version: %+v" , version .Get ().String ()))
185
+
184
186
if _ , err := os .ReadDir ("/tmp/" ); err != nil {
185
187
setupLog .Error (err , "Unable to start manager" )
186
188
os .Exit (1 )
You can’t perform that action at this time.
0 commit comments