forked from kubeflow/manifests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync kserve web app manifests v0.8.1 (kubeflow#2256)
* hack: Destinct sync script for the web app Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com> * Update kserve web app manifests from v0.8.1 * hack: Update the kserve sync script Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com> * e2e: Increase the timeout to 10mins We've seen that quite frequently the test times out either because: 1. Pulling images can be slower depending on the connection 2. There might be some delays with the components to complete We've noticed this for the Training Operator worker pod. Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com> * e2e: Change the cleanup script for kserve.io The clean up script would previously try to delete kubeflow.org inference services. Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com>
- Loading branch information
1 parent
3cd21f9
commit 0a585d0
Showing
9 changed files
with
80 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ spec: | |
http: | ||
- match: | ||
- uri: | ||
prefix: /models/ | ||
prefix: /kserve-endpoints/ | ||
rewrite: | ||
uri: / | ||
route: | ||
|
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
4 changes: 4 additions & 0 deletions
4
contrib/kserve/models-web-app/overlays/kubeflow/patches/web-app-vsvc.yaml
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,68 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script aims at helping create a PR to update the manifests of the | ||
# kserve/models-web-app repo. | ||
# This script: | ||
# 1. Checks out a new branch | ||
# 2. Copies files to the correct places | ||
# 3. Commits the changes | ||
# | ||
# Afterwards the developers can submit the PR to the kubeflow/manifests | ||
# repo, based on that local branch | ||
|
||
# strict mode http://redsymbol.net/articles/unofficial-bash-strict-mode/ | ||
set -euo pipefail | ||
IFS=$'\n\t' | ||
|
||
SRC_DIR=${SRC_DIR:=/tmp/kserve-models-web-app} | ||
BRANCH=${BRANCH:=sync-kserve-web-app-manifests-${COMMIT?}} | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
MANIFESTS_DIR=$(dirname $SCRIPT_DIR) | ||
|
||
echo "Creating branch: ${BRANCH}" | ||
|
||
# DEV: Comment out this if when local testing | ||
if [ -n "$(git status --porcelain)" ]; then | ||
# Uncommitted changes | ||
echo "WARNING: You have uncommitted changes, exiting..." | ||
exit 1 | ||
fi | ||
|
||
if [ `git branch --list $BRANCH` ] | ||
then | ||
echo "WARNING: Branch $BRANCH already exists. Exiting..." | ||
exit 1 | ||
fi | ||
|
||
# DEV: Comment out this checkout command when local testing | ||
git checkout -b $BRANCH | ||
|
||
echo "Checking out in $SRC_DIR to $COMMIT..." | ||
cd $SRC_DIR | ||
if [ -n "$(git status --porcelain)" ]; then | ||
# Uncommitted changes | ||
echo "WARNING: You have uncommitted changes, exiting..." | ||
exit 1 | ||
fi | ||
git checkout $COMMIT | ||
|
||
echo "Copying admission-webhook manifests..." | ||
DST_DIR=$MANIFESTS_DIR/contrib/kserve/models-web-app | ||
rm -r $DST_DIR | ||
cp $SRC_DIR/config $DST_DIR -r | ||
|
||
echo "Successfully copied kserve models web app manifests." | ||
|
||
echo "Updating README..." | ||
SRC_TXT="\[.*\](/~https://github.com/kserve/models-web-app/tree/.*)" | ||
DST_TXT="\[$COMMIT\](/~https://github.com/kserve/models-web-app/tree/$COMMIT/config)" | ||
|
||
sed -i "s|$SRC_TXT|$DST_TXT|g" "${MANIFESTS_DIR}"/README.md | ||
|
||
# DEV: Comment out these commands when local testing | ||
echo "Committing the changes..." | ||
cd "$MANIFESTS_DIR" | ||
git add contrib/kserve/models-web-app | ||
git add README.md | ||
git commit -m "Update kserve web app manifests from ${COMMIT}" |
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