-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Report versioning errors in StorageCluster's Status
Update StorageCluster status on versioning error. Append an error status condition to StorageCluster status field when an error arises during `versionCheck`. And, modified the hack scripts to update the VERSION env during the binary build. Co-authored-by: Pranshu Srivastava <rexagod@gmail.com> Signed-off-by: Nikhil-Ladha <nikhilladha1999@gmail.com>
- Loading branch information
1 parent
c46ffed
commit d05194d
Showing
7 changed files
with
29 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
source hack/common.sh | ||
|
||
LDFLAGS="-X github.com/red-hat-storage/ocs-operator/version.Version=${VERSION}" | ||
|
||
# shellcheck disable=SC2046 | ||
go test -ldflags="${LDFLAGS}" -v -cover $(go list ./... | grep -v "functest") |