Skip to content

Commit

Permalink
Add operator/installer artifacts to release tar (istio#16208)
Browse files Browse the repository at this point in the history
* Add operator/installer artifacts to release tar

* Fix version
  • Loading branch information
ostromart authored and istio-testing committed Aug 13, 2019
1 parent 4f8e0e4 commit 1fed9cd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions release/create_release_archives.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function create_linux_archive() {
env GZIP=-9 "${TAR}" --owner releng --group releng -czf \
"${OUTPUT_PATH}/istio-${VER_STRING}-linux.tar.gz" "istio-${VER_STRING}" \
|| error_exit 'Could not create istio linux archive'

env GZIP=-9 "${TAR}" --owner releng --group releng -czf \
"${OUTPUT_PATH}/istioctl-${VER_STRING}-linux.tar.gz" "${OUTPUT_PATH}/${ISTIOCTL_SUBDIR}"/istioctl-linux \
|| error_exit 'Could not create istioctl linux archive'
Expand Down Expand Up @@ -122,10 +122,10 @@ function create_windows_archive() {

zip -r -q "${OUTPUT_PATH}/istio-${VER_STRING}-win.zip" "istio-${VER_STRING}" \
|| error_exit 'Could not create istio windows archive'

zip -r -q "${OUTPUT_PATH}/istioctl-${VER_STRING}-win.zip" "${OUTPUT_PATH}/${ISTIOCTL_SUBDIR}"/istioctl-win.exe \
|| error_exit 'Could not create istioctl windows archive'

rm "${istioctl_path}"
}

Expand Down Expand Up @@ -156,7 +156,7 @@ popd
# merge values-istio-demo-common.yaml into values-istio-demo yaml files
cat "${COMMON_FILES_DIR}/install/kubernetes/helm/istio/values-istio-demo-common.yaml" "${COMMON_FILES_DIR}/install/kubernetes/helm/istio/values-istio-demo.yaml" >> "${COMMON_FILES_DIR}/install/kubernetes/helm/istio/values-istio-demo-tmp.yaml"
cat "${COMMON_FILES_DIR}/install/kubernetes/helm/istio/values-istio-demo-common.yaml" "${COMMON_FILES_DIR}/install/kubernetes/helm/istio/values-istio-demo-auth.yaml" >> "${COMMON_FILES_DIR}/install/kubernetes/helm/istio/values-istio-demo-auth-tmp.yaml"
mv "${COMMON_FILES_DIR}/install/kubernetes/helm/istio/values-istio-demo-tmp.yaml" "${COMMON_FILES_DIR}/install/kubernetes/helm/istio/values-istio-demo.yaml"
mv "${COMMON_FILES_DIR}/install/kubernetes/helm/istio/values-istio-demo-tmp.yaml" "${COMMON_FILES_DIR}/install/kubernetes/helm/istio/values-istio-demo.yaml"
mv "${COMMON_FILES_DIR}/install/kubernetes/helm/istio/values-istio-demo-auth-tmp.yaml" "${COMMON_FILES_DIR}/install/kubernetes/helm/istio/values-istio-demo-auth.yaml"

for unwanted_manifest in \
Expand Down Expand Up @@ -188,6 +188,9 @@ TEMP_DIR=$(mktemp -d)
pushd "${TEMP_DIR}"
git clone -b "${CB_BRANCH}" https://github.com/istio/cni.git
cp -r cni/deployments/kubernetes/install/helm/istio-cni "${COMMON_FILES_DIR}/install/kubernetes/helm"

git clone -b "${CB_BRANCH}" https://github.com/istio/operator.git
operator/release/create_release_charts.sh -v "${CB_BRANCH}" -o "${COMMON_FILES_DIR}/install/kubernetes/operator"
popd
# Changing dir such that tar and zip files are
# created with right hiereachy
Expand Down

0 comments on commit 1fed9cd

Please sign in to comment.