From e2febecb9e92b0e06a334ce3fefd37c6d610154f Mon Sep 17 00:00:00 2001 From: Samuel Veloso Date: Mon, 27 Jun 2022 16:03:53 +0200 Subject: [PATCH] ODH Notebook Controller: Enable culling --- odh-notebook-controller/README.md | 79 +++++++++++++++++-- .../gen_kubeflow_manifests.sh | 2 +- odh-notebook-controller/gen_odh_manifests.sh | 2 +- .../overlays/openshift/kustomization.yaml | 2 +- .../openshift/manager_openshift_patch.yaml | 18 +++++ .../kf-notebook-controller/rbac/role.yaml | 1 + .../base/kustomization.yaml | 2 +- tests/basictests/odh-notebook-controller.sh | 2 +- .../kubeflow-jupyter-oauth-notebook.yaml | 7 +- .../thoth-generic-oauth-notebook.yaml | 12 +-- .../notebooks/thoth-minimal-notebook.yaml | 14 ++-- .../thoth-minimal-oauth-notebook.yaml | 14 ++-- 12 files changed, 120 insertions(+), 35 deletions(-) diff --git a/odh-notebook-controller/README.md b/odh-notebook-controller/README.md index be3e45bff..cd86f0a64 100644 --- a/odh-notebook-controller/README.md +++ b/odh-notebook-controller/README.md @@ -29,7 +29,8 @@ Add the following configuration to your `KfDef` object to install the Create a notebook object with the image and other parameters such as the environment variables, resource limits, tolerations, etc: -```yaml +```shell +notebook_namespace=$(oc config view --minify -o jsonpath='{..namespace}') cat <