Skip to content

Commit 50a9eeb

Browse files
committed
Replacing odh-manifests references with data-science-pipelines
1 parent 7f7696d commit 50a9eeb

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

tests/scripts/install.sh

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -45,29 +45,10 @@ if [ -z "$PULL_NUMBER" ]; then
4545
else
4646
if [ $REPO_NAME == "data-science-pipelines" ]; then
4747
echo "Setting manifests in kfctl_openshift to use pull number: $PULL_NUMBER"
48-
sed -i "s#uri: https://github.com/opendatahub-io/odh-manifests/tarball/master#uri: https://api.github.com/repos/opendatahub-io/odh-manifests/tarball/pull/${PULL_NUMBER}/head#" ./kfctl_openshift.yaml
48+
sed -i "s#uri: https://github.com/opendatahub-io/data-science-pipelines/tarball/master#uri: https://api.github.com/repos/opendatahub-io/data-science-pipelines/tarball/pull/${PULL_NUMBER}/head#" ./kfctl_openshift.yaml
4949
fi
5050
fi
5151

52-
if [ -z "${OPENSHIFT_USER}" ] || [ -z "${OPENSHIFT_PASS}" ]; then
53-
OAUTH_PATCH_TEXT="$(cat $HOME/peak/operator-tests/odh-manifests/resources/oauth-patch.htpasswd.json)"
54-
echo "Creating HTPASSWD OAuth provider"
55-
oc apply -f $HOME/peak/operator-tests/odh-manifests/resources/htpasswd.secret.yaml
56-
57-
# Test if any oauth identityProviders exists. If not, initialize the identityProvider list
58-
if ! oc get oauth cluster -o json | jq -e '.spec.identityProviders' ; then
59-
echo 'No oauth identityProvider exists. Initializing oauth .spec.identityProviders = []'
60-
oc patch oauth cluster --type json -p '[{"op": "add", "path": "/spec/identityProviders", "value": []}]'
61-
fi
62-
63-
# Patch in the htpasswd identityProvider prevent deletion of any existing identityProviders like ldap
64-
# We can have multiple identityProvdiers enabled aslong as their 'name' value is unique
65-
oc patch oauth cluster --type json -p '[{"op": "add", "path": "/spec/identityProviders/-", "value": '"$OAUTH_PATCH_TEXT"'}]'
66-
67-
export OPENSHIFT_USER=admin
68-
export OPENSHIFT_PASS=admin
69-
fi
70-
7152
if ! [ -z "${SKIP_KFDEF_INSTALL}" ]; then
7253
## SKIP_KFDEF_INSTALL is useful in an instance where the
7354
## operator install comes with an init container to handle

0 commit comments

Comments
 (0)