-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add istio.io repo #9983
Add istio.io repo #9983
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ cat << EOF > "/workspace/gcb_env.sh" | |
export CB_BRANCH="${GIT_SHA}" | ||
export CB_VERSION="${GIT_SHA}" | ||
export CB_ISTIOCTL_DOCKER_HUB="docker.io/istio" | ||
export CB_PIPELINE_TYPE=daily | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe we need two tests for the two types? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. for test coverage purpose, I think we should have two tests for the two types. but considering the 2 factors:
|
||
EOF | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,6 @@ | |
# | ||
################################################################################ | ||
|
||
set -o errexit | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do you move these down? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Move them together to ensure perform this cmd Before changes:
After Changes:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's ignore those for now. This file is not mean to be used by human directly anyway, and @rkpagadala is moving stuff around. I suggest we just revert. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @hklai If we can make it use by human directly, why not. At least, when I did test the release package, I need to run this Shell to generate the package. Then show the usage more friendly is not so bad. What do you think? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK it's fine to make it more usable. |
||
set -o pipefail | ||
set -x | ||
|
||
# This script primarily exists for Cloud Builder. This script | ||
# reads artifacts from a specified directory, generates tar files | ||
# based on those artifacts, and then stores the tar files | ||
|
@@ -30,6 +26,13 @@ ISTIOCTL_SUBDIR=istioctl | |
OUTPUT_PATH="" | ||
VER_STRING="" | ||
|
||
function cleanup() { | ||
rm -rf "$TEMP_DIR" | ||
} | ||
|
||
# do cleanup before the script exits | ||
trap cleanup EXIT | ||
|
||
function usage() { | ||
echo "$0 | ||
-d <path> path to use for temp directory (optional, randomized default is ${BASE_DIR} ) | ||
|
@@ -45,6 +48,11 @@ function error_exit() { | |
exit "${2:-1}" | ||
} | ||
|
||
# since there are 2 required options, should show usage and exit with no args specified | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the following does exactly that? |
||
if (($# == 0)); then | ||
usage | ||
fi | ||
|
||
while getopts d:i:o:v: arg ; do | ||
case "${arg}" in | ||
d) BASE_DIR="${OPTARG}";; | ||
|
@@ -55,6 +63,10 @@ while getopts d:i:o:v: arg ; do | |
esac | ||
done | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -x | ||
|
||
[[ -z "${BASE_DIR}" ]] && usage | ||
[[ -z "${OUTPUT_PATH}" ]] && usage | ||
[[ -z "${VER_STRING}" ]] && usage | ||
|
@@ -159,4 +171,3 @@ create_osx_archive | |
create_windows_archive | ||
popd | ||
|
||
rm -rf "$TEMP_DIR" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What will be the URL for production users ? We can't use prerelease and storage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it will be replaced during creating release package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@clyang82 Can you please add some comments to production users here? +1 to @costinm , it seems to be weird to use pre release here.