Skip to content

Commit

Permalink
Create the oauth secrets in tests because we don't have rhods-operato…
Browse files Browse the repository at this point in the history
…r to do it for us
  • Loading branch information
jiridanek committed Nov 15, 2024
1 parent c9147f7 commit fefa76e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/odh_notebook_controller_integration_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,32 @@ jobs:
kubectl describe pods -n opendatahub -l app=odh-notebook-controller
kubectl logs -n opendatahub -l app=odh-notebook-controller
- name: Create oauth secrets, rhods-operator would've generated that when it sees the notebook (created in the next step), but we test without rhods-operator
run: |
notebookNamespace=default
notebookName=minimal-notebook
cat <<EOF | kubectl apply -f -
---
kind: Secret
apiVersion: v1
metadata:
name: ${notebookName}-oauth-client-generated
namespace: ${notebookNamespace}
stringData:
secret: EXAMPLE_SECRET_xyz
type: Opaque
---
kind: Secret
apiVersion: v1
metadata:
name: ${notebookName}-oauth-config-generated
namespace: ${notebookNamespace}
stringData:
cookie_secret: EXAMPLE_COOKIE_SECRET_x
type: Opaque
EOF
- name: Create notebook and check it, this is from kubeflow readme
run: |
notebook_namespace=default
Expand Down

0 comments on commit fefa76e

Please sign in to comment.