This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Log appset version during controller startup log (#241)
Signed-off-by: Chetan Banavikalmutt <chetanrns1997@gmail.com>
- Loading branch information
1 parent
4e7a2ca
commit 8d3fa24
Showing
4 changed files
with
32 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package common | ||
|
||
// version information populated during build time | ||
var ( | ||
version = "" // value from VERSION file | ||
gitCommit = "" // output of git rev-parse HEAD | ||
) | ||
|
||
// Version of the applicationset controller | ||
type Version struct { | ||
Version string | ||
GitCommit string | ||
} | ||
|
||
// GetVersion returns the version of the applicationset controller | ||
func GetVersion() Version { | ||
return Version{ | ||
Version: "v" + version, | ||
GitCommit: gitCommit, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters