Skip to content

Commit

Permalink
update readme and kustomization
Browse files Browse the repository at this point in the history
  • Loading branch information
surajkota committed Jul 1, 2022
1 parent 911f6c6 commit 45fcef9
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 9 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
17 changes: 13 additions & 4 deletions contrib/kserve/kserve/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- kserve.yaml
- aggregated-roles.yaml
# For KF 1.5 we are including both KFServing and KServe. Thus we install the
# Install Kserve in kubeflow namespace
- kserve_kubeflow.yaml

# If you want to install both KFServing and KServe, install the
# standalone kserve manifests, to avoid conflicts with 0.6.1 KFServing.
#- kserve_kubeflow.yaml
# - kserve.yaml
# - aggregated-roles.yaml
# - kserve-runtimes.yaml
# configMapGenerator:
# - name: kserve-config
# namespace: kserve
# behavior: merge
# envs:
# - params.env
1 change: 1 addition & 0 deletions contrib/kserve/kserve/params.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ingressGateway=kubeflow/kubeflow-gateway
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 45fcef9

Please sign in to comment.