Skip to content

Commit

Permalink
Update Kuberay version in CI. (#27967) (#29151)
Browse files Browse the repository at this point in the history
Updates KubeRay version used in CI to v0.3.0-rc.2 (which we expect to be identical to the final v0.3.0).
Also removes a couple of old files.

Will open a corresponding cherry pick in the Ray 2.0.0 branch.
The key thing to verify is that the CI autoscaling test passes here and in the PR and in the PR against the 2.0.0 branch.
  • Loading branch information
DmitriGekhtman authored Oct 7, 2022
1 parent ba34c36 commit 03b6bc7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 70 deletions.
18 changes: 7 additions & 11 deletions python/ray/autoscaler/kuberay/init-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

# Clone pinned Kuberay commit to temporary directory, copy the CRD definitions
# into the autoscaler folder.
KUBERAY_COMMIT="v0.3.0-rc.2"
OPERATOR_TAG="v0.3.0-rc.2"

KUBERAY_SHA="ce84f0441c991eb4b0f52ee2cd85c0a5ac048d11"
OPERATOR_TAG=${KUBERAY_SHA:0:7}

# Requires Kustomize (dependency to be removed after KubeRay 0.3.0 cut)
# Requires Kustomize
if ! command -v kustomize &> /dev/null
then
echo "Please install kustomize. Then re-run this script."
Expand All @@ -18,12 +17,9 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
DIR=$(mktemp -d -t "kuberay-XXXXXX")

pushd "$DIR" || exit
git clone https://github.com/ray-project/kuberay/
pushd "kuberay" || exit
git checkout "$KUBERAY_SHA$"
pushd ray-operator/config/default || exit
kustomize edit set image kuberay/operator=kuberay/operator:"$OPERATOR_TAG"
popd || exit
cp -r ray-operator/config "$SCRIPT_DIR/"
git clone https://github.com/ray-project/kuberay/ --branch "$KUBERAY_COMMIT" --depth 1
pushd kuberay/ray-operator/config/default || exit
kustomize edit set image kuberay/operator=kuberay/operator:"$OPERATOR_TAG"
popd || exit
cp -r kuberay/ray-operator/config "$SCRIPT_DIR/"
popd || exit
32 changes: 0 additions & 32 deletions python/ray/autoscaler/kuberay/kuberay-autoscaler-rbac.yaml

This file was deleted.

27 changes: 0 additions & 27 deletions python/ray/autoscaler/kuberay/kuberay-autoscaler.patch

This file was deleted.

0 comments on commit 03b6bc7

Please sign in to comment.