@@ -45,29 +45,10 @@ if [ -z "$PULL_NUMBER" ]; then
45
45
else
46
46
if [ $REPO_NAME == " data-science-pipelines" ]; then
47
47
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
49
49
fi
50
50
fi
51
51
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
-
71
52
if ! [ -z " ${SKIP_KFDEF_INSTALL} " ]; then
72
53
# # SKIP_KFDEF_INSTALL is useful in an instance where the
73
54
# # operator install comes with an init container to handle
0 commit comments