Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print version and commit hash on startup #134

Open
schrej opened this issue Jul 24, 2024 · 0 comments
Open

Print version and commit hash on startup #134

schrej opened this issue Jul 24, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@schrej
Copy link
Member

schrej commented Jul 24, 2024

In order to identify the exact version running on a cluster, in case a hand-crafted image is used for example, the operator should output it's version and it's commit hash on startup.

Version and hash should be set when building the binary using go ldflags, which allows changing vars at build time. CAPI has a good approach for making those values read-only:
https://github.com/kubernetes-sigs/cluster-api/blob/main/version/version.go

@schrej schrej added enhancement New feature or request good first issue Good for newcomers labels Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant