Small tweaks to bring in line with other Kubernetes tools

This commit is contained in:
2025-04-18 16:06:53 +02:00
parent 2d2ef6903b
commit 884c37aa1b
12 changed files with 84 additions and 33 deletions

11
src/version.rs Normal file
View File

@@ -0,0 +1,11 @@
pub const VERSION: &str = get_version();
const fn get_version() -> &'static str {
if let Some(version) = std::option_env!("RELEASE_VERSION")
&& !version.is_empty()
{
version
} else {
git_version::git_version!(fallback = "unknown")
}
}