Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
surajkota committed Jul 1, 2022
1 parent 911f6c6 commit 0595cbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ This repo periodically syncs all official Kubeflow components from their respect
| Volumes Web App | apps/volumes-web-app/upstream | [v1.5.0](https://github.com/kubeflow/kubeflow/tree/v1.5.0/components/crud-web-apps/volumes/manifests) |
| Katib | apps/katib/upstream | [v0.14.0-rc.0](https://github.com/kubeflow/katib/tree/v0.14.0-rc.0/manifests/v1beta1) |
| KFServing | apps/kfserving/upstream | [v0.6.1](https://github.com/kubeflow/kfserving/releases/tag/v0.6.1) |
| KServe | contrib/kserve/kserve | [8079f375cbcedc4d45a1b4aade2e2308ea6f9ae8](https://github.com/kserve/kserve/tree/8079f375cbcedc4d45a1b4aade2e2308ea6f9ae8/install/v0.8.0) |
| KServe | contrib/kserve/kserve | [release-0.8](https://github.com/kserve/kserve/tree/8079f375cbcedc4d45a1b4aade2e2308ea6f9ae8/install/v0.8.0) |
| KServe Models Web App | contrib/kserve/models-web-app | [v0.8.0](https://github.com/kserve/models-web-app/tree/v0.8.0/config) |
| Kubeflow Pipelines | apps/pipeline/upstream | [1.8.2](https://github.com/kubeflow/pipelines/tree/1.8.2/manifests/kustomize) |
| Kubeflow Tekton Pipelines | apps/kfp-tekton/upstream | [v1.2.1](https://github.com/kubeflow/kfp-tekton/tree/v1.2.1/manifests/kustomize) |
Expand Down
11 changes: 7 additions & 4 deletions hack/sync-kserve-manifests.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This script aims at helping create a PR to update the manifests of the
# kubeflow/pipelines repo.
# kserve/kserve and kserve/models-web-app repo.
# This script:
# 1. Checks out a new branch
# 2. Copies files to the correct places
Expand All @@ -10,6 +10,9 @@
# Afterwards the developers can submit the PR to the kubeflow/manifests
# repo, based on that local branch

# Run this script form the root of kubeflow/manifests repository
# ./hack/sync-kserve-manifests.sh

# strict mode http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail
IFS=$'\n\t'
Expand All @@ -18,7 +21,7 @@ CLONE_DIR=${CLONE_DIR:=/tmp}
KSERVE_DIR="${CLONE_DIR?}/kserve"
WEBAPP_DIR="${CLONE_DIR?}/models-web-app"
BRANCH=${BRANCH:=sync-kserve-manifests-${KSERVE_COMMIT?}}
# required only if commit does not match the tag
# *_VERSION vars are required only if COMMIT does not match a tag
KSERVE_VERSION=${KSERVE_VERSION:=${KSERVE_COMMIT?}}
WEBAPP_VERSION=${WEBAPP_VERSION:=${WEBAPP_COMMIT?}}

Expand All @@ -31,7 +34,7 @@ echo "Creating branch: ${BRANCH}"
if [ -n "$(git status --porcelain)" ]; then
# Uncommitted changes
echo "WARNING: You have uncommitted changes, exiting..."
# exit 1
exit 1
fi

if [ "$(git branch --list "${BRANCH}")" ]
Expand Down Expand Up @@ -102,7 +105,7 @@ DST_DIR=$MANIFESTS_DIR/contrib/kserve/models-web-app
rm -r "$DST_DIR"
cp "$SRC_MANIFEST_PATH" "$DST_DIR" -r

echo "Successfully copied kserve manifests."
echo "Successfully copied kserve models web app manifests."

echo "Updating README..."
SRC_TXT="\[.*\](https://github.com/kserve/models-web-app/tree/.*)"
Expand Down

0 comments on commit 0595cbc

Please sign in to comment.