-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace the hard coded version and image name using git describe. When building from tag (e.g. v0.5.1) the version (0.5.1) and the image (quay.io/nirsof/gather:0.5.1) are injected into the executable and used to report the version and for the --remote option. When building without a tag, the version includes the number of commits since the last tag, and a short git commit hash (v0.5.1-1-gcf79160). The executable will use the image with the same version from the registry, so we need to push the image to the registry for testing the --remote option. A new --version option added, reporting gather version. A new --image option added for setting the image for the --remote option. This is useful for testing the latest release image without pushing the image to the registry, for testing and image from your registry, or for using custom image on multiple clusters. The gather script use the version option to generate /must-gather/version file instead of the hard-coded version. The build command is complicated now, so we use make to build the releases. This ensures also that local builds are builds exactly like release builds and makes it easier to debug release issues.
- Loading branch information
Showing
7 changed files
with
31 additions
and
13 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
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
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