File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ GOOS=linux
8585PACKAGE =sigs.k8s.io/node-feature-discovery-operator
8686MAIN_PACKAGE =main.go
8787BIN =node-feature-discovery-operator
88- LDFLAGS = -ldflags "-s -w -X sigs.k8s.io/node-feature-discovery-operator/pkg/version .version=$(VERSION ) "
88+ LDFLAGS = -ldflags "-s -w -X main .version=$(VERSION ) "
8989
9090PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST ) ) ) )
9191
Original file line number Diff line number Diff line change @@ -40,13 +40,13 @@ import (
4040 "sigs.k8s.io/node-feature-discovery-operator/internal/deployment"
4141 "sigs.k8s.io/node-feature-discovery-operator/internal/job"
4242 "sigs.k8s.io/node-feature-discovery-operator/internal/status"
43- "sigs.k8s.io/node-feature-discovery-operator/pkg/version"
4443 // +kubebuilder:scaffold:imports
4544)
4645
4746var (
4847 // scheme holds a new scheme for the operator
49- scheme = runtime .NewScheme ()
48+ scheme = runtime .NewScheme ()
49+ version = "undefined"
5050)
5151
5252const (
@@ -92,7 +92,7 @@ func main() {
9292 }
9393
9494 if * printVersion {
95- fmt .Println (ProgramName , version . Get () )
95+ fmt .Println (ProgramName , version )
9696 os .Exit (0 )
9797 }
9898
You can’t perform that action at this time.
0 commit comments