-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* (enhancement)resources: add argo rollouts as a supported parent resource for chaos (#300) * (enhancement)resources: add argo rollouts as a supported parent resource for chaos Signed-off-by: ksatchit <[email protected]> * (fix)resources: add namespace and label selector for app filter in case of dynamic client use Signed-off-by: ksatchit <[email protected]> * (lint)resources: add right comment as per lint req Signed-off-by: ksatchit <[email protected]> * chore(add): Add multiarch image into master chaos-operator (#301) Signed-off-by: Udit Gaurav <[email protected]> Co-authored-by: Udit Gaurav <[email protected]>
- Loading branch information
1 parent
520679f
commit 6c4e3dc
Showing
17 changed files
with
518 additions
and
121 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,30 @@ | ||
#!/usr/bin/env bash | ||
|
||
package=$1 | ||
if [[ -z "$package" ]]; then | ||
echo "usage: $0 <package-name>" | ||
exit 1 | ||
fi | ||
|
||
package_split=(${package//\// }) | ||
package_name=${package_split[-1]} | ||
|
||
# add the arch for which we want to build the image | ||
platforms=("linux/amd64" "linux/arm64") | ||
|
||
for platform in "${platforms[@]}" | ||
do | ||
platform_split=(${platform//\// }) | ||
GOOS=${platform_split[0]} | ||
GOARCH=${platform_split[1]} | ||
output_name=build/_output/bin/chaos-operator$GOARCH | ||
|
||
# The script executes for the argument passed (in package variable) | ||
# here the arg will be "github.com/litmuschaos/chaos-operator/cmd/manager" for creating binary | ||
env GOOS=$GOOS GOARCH=$GOARCH go build -o $output_name $package | ||
|
||
if [ $? -ne 0 ]; then | ||
echo 'An error has occurred! Aborting the script execution...' | ||
exit 1 | ||
fi | ||
done |
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
Oops, something went wrong.