File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ package main
19
19
import (
20
20
"flag"
21
21
"os"
22
+ "runtime"
22
23
"time"
23
24
24
25
"github.com/spf13/pflag"
@@ -32,12 +33,21 @@ import (
32
33
"github.com/joelanford/helm-operator/pkg/manager"
33
34
"github.com/joelanford/helm-operator/pkg/reconciler"
34
35
"github.com/joelanford/helm-operator/pkg/watches"
36
+ "github.com/joelanford/helm-operator/version"
35
37
)
36
38
37
39
var (
38
40
setupLog = ctrl .Log .WithName ("setup" )
39
41
)
40
42
43
+ func printVersion () {
44
+ setupLog .Info ("version information" ,
45
+ "go" , runtime .Version (),
46
+ "GOOS" , runtime .GOOS ,
47
+ "GOARCH" , runtime .GOARCH ,
48
+ "helm-operator" , version .Version )
49
+ }
50
+
41
51
func main () {
42
52
var (
43
53
metricsAddr string
@@ -84,6 +94,8 @@ func main() {
84
94
zapl .StacktraceLevel (& sttLvl ),
85
95
))
86
96
97
+ printVersion ()
98
+
87
99
// Deprecated: --max-workers flag does not align well with the name of the option it configures on the controller
88
100
// (MaxConcurrentReconciles). Flag `--max-concurrent-reconciles` should be used instead.
89
101
if pflag .Lookup ("max-workers" ).Changed {
Original file line number Diff line number Diff line change
1
+ /*
2
+ Copyright 2020 The Operator-SDK Authors.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
17
+ package version
18
+
19
+ const (
20
+ Version = "0.0.0+git"
21
+ )
You can’t perform that action at this time.
0 commit comments