Closed Adembc closed 3 months ago
Now the unit tests are failing because I removed the validation that prevented the WorkspaceKind fields .Spec.PodTemplate.Options.ImageConfig
and .Spec.PodTemplate.Options.PodConfig
from being mutable. These validations were causing errors in the workspace reconciliation loop. As discussed with @thesuperzapper, these validations should be removed and replaced by validation webhooks.
Maybe we should merge the validation webhook PR first to ensure the unit tests pass.
@Adembc I have done the following changes in https://github.com/kubeflow/notebooks/pull/30/commits/61c85fa0c88149706f7a255f69ad6b4ed6723552
kind load docker-image ...
command.@Adembc I have done the following changes in https://github.com/kubeflow/notebooks/pull/30/commits/16886cededb63db5f815f554fc85de69089597e5
+kubebuilder:validation:XValidation:rule="self == oldSelf"
was removedghcr.io/kubeflow/notebooks/workspace-controller:latest
(as this will be the image name once we release)./workspaces/controller/config/samples
better to separate the "common" ones like ServiceAccount/default-editor
and PVC/workspace-home-pvc
from our actual custom CRDs.status.stateMessage
when the Pod is missing.
.involvedObject.uid
field of Eventsstatus.stateMessage
information for cases when the Pod is unschedulable (e.g. due to no node meeting the CPU/RAM request)./workspaces/controller/test/e2e/e2e_test.go
:
default
namespacestatus.state
is Runningcurl
pod that checks the service is up./workspaces/controller/test/utils/utils.go
:
InstallPrometheusOperator()
UninstallPrometheusOperator()
UninstallCertManager()
InstallCertManager()
@Adembc thanks for your work on this! We can do follow ups in future PRs.
/lgtm /approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: thesuperzapper
The full list of commands accepted by this bot can be found here.
The pull request process is described here
This PR makes the following changes to the workspace controller:
+kubebuilder:validation:XValidation:rule="self == oldSelf"
annotations for image config and pod config.NB_PREFIX
value from "juptyerlab" to "jupyterlab".default-editor
service account and delete it after testing.home
PVC anddata
PVC, and delete them afterwards.WorkspaceKind
samples.Workspace
samples.NB_PREFIX
environment variable.