Skip to content

Commit

Permalink
Unify branch names for odh-manifests and notebooks
Browse files Browse the repository at this point in the history
Notebooks branch can be set explicitly via --notebooks-branch

Signed-off-by: Andrej Podhradsky <apodhrad@redhat.com>
  • Loading branch information
apodhrad committed Nov 10, 2023
1 parent e9ef53e commit 919ebc6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion rhods-disconnected-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set_defaults() {
rhods_version="${rhods_version:-}"
repository_folder="${repository_folder:-.odh-manifests}"
notebooks_folder="${notebooks_folder:-.odh-notebooks}"
notebooks_branch="${notebooks_branch:-release-2023a}"
notebooks_branch="${notebooks_branch:-}"
file_name="${file_name:-$rhods_version.md}"
skip_tls="${skip_tls:-false}"
mirror_url="${mirror_url:-registry.example.com:5000/mirror/oc-mirror-metadata}"
Expand Down Expand Up @@ -186,6 +186,13 @@ function change_rhods_version() {
echo "Error: Version $rhods_version does not exist"
exit 1
fi

# Set the same vesrion for notebooks if not set otherwise via
# --notebooks-branch <notebooks_branch>
if [ -z "${notebooks_branch}" ]; then
notebooks_branch="${rhods_version}"
fi

echo "Switching to $rhods_version"
git switch "$rhods_version"
return 0
Expand Down Expand Up @@ -244,6 +251,11 @@ parse_args() {
shift
shift
;;
--notebooks-branch)
notebooks_branch="$2"
shift
shift
;;
--skip-image-verification)
skip_image_verification=true
shift
Expand Down

0 comments on commit 919ebc6

Please sign in to comment.