Skip to content

Commit 6b8cbf4

Browse files
authored
fix: wrong version logged on startup (#729)
The k/cloud-provider library is logging a version on startup. This version is expected to be set by Kubernetes build scripts, but we do not use this. Right now it looks like this: ``` controllermanager.go:169] Version: v0.0.0-master+$Format:%H$ ``` With the fix, this will report the same version as we use for the user-agent.
1 parent cc1b6b7 commit 6b8cbf4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ builds:
2323
- -s
2424
- -w
2525
- -X github.com/hetznercloud/hcloud-cloud-controller-manager/hcloud.providerVersion={{ if not .IsSnapshot }}v{{ end }}{{ .Version }}
26+
- -X k8s.io/component-base/version.gitVersion={{ if not .IsSnapshot }}v{{ end }}{{ .Version }}
2627

2728
dockers:
2829
- build_flag_templates: [--platform=linux/amd64]

0 commit comments

Comments
 (0)