Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ws): Add Workspace Data Vol column functionality to workspaces table #159

Conversation

ElayAharoni
Copy link

@ElayAharoni ElayAharoni commented Dec 12, 2024

Fixes: #149

added popup with the worspace data vol info, that will show when hovering on the data vol column field.

please inform me if anything needs to be changes in matter of functionality or styling.

added a picture of the change:

image

jiridanek and others added 30 commits May 23, 2024 18:36
* feat: Generate kubebuilder project

Signed-off-by: Jiri Daněk <[email protected]>

* fixup add unittests gha

Signed-off-by: Jiri Daněk <[email protected]>

* fixup disable permissions for all of the available scopes

Signed-off-by: Jiri Daněk <[email protected]>

* fixup add triggers for release branches

Signed-off-by: Jiri Daněk <[email protected]>

* fixup remove duplicated gitignores

Signed-off-by: Jiri Daněk <[email protected]>

* fixup remove workflow dispatch

Signed-off-by: Jiri Daněk <[email protected]>

* Apply suggestions from code review

Co-authored-by: Mathew Wicks <[email protected]>

Signed-off-by: Jiri Daněk <[email protected]>

* fixup rename the project to workspace-controller

Signed-off-by: Jiri Daněk <[email protected]>

* fixup update kubebuilder to 3.15

https://github.com/kubernetes-sigs/kubebuilder/releases/tag/v3.15.0

Signed-off-by: Jiri Daněk <[email protected]>

---------

Signed-off-by: Jiri Daněk <[email protected]>
* feat(ws): initial commit for backend

Signed-off-by: Eder Ignatowicz <[email protected]>

* Fixing docker build

Signed-off-by: Eder Ignatowicz <[email protected]>

* Fixing git ignore

Signed-off-by: Eder Ignatowicz <[email protected]>

---------

Signed-off-by: Eder Ignatowicz <[email protected]>
* feat (ws): Backend Kubernetes client

- Creation of Kubernetes Client;
- Wrapping the client on application;

Signed-off-by: Eder Ignatowicz <[email protected]>

* Update workspaces/backend/cmd/main.go

Co-authored-by: Mathew Wicks <[email protected]>

* Adding .docker ignore

Signed-off-by: Eder Ignatowicz <[email protected]>

---------

Signed-off-by: Eder Ignatowicz <[email protected]>
Co-authored-by: Mathew Wicks <[email protected]>
* feat(ws): add `Workspace` and `WorkspaceKind` CRD scaffolds

Co-authored-by: Mathew Wicks <[email protected]>

Signed-off-by: Jiri Daněk <[email protected]>

* fixup, regenerate WOrkspaceKind to be cluster scope

Signed-off-by: Jiri Daněk <[email protected]>

* fixes to crd spec

Signed-off-by: Mathew Wicks <[email protected]>

* updates to CRD spec

Signed-off-by: Mathew Wicks <[email protected]>

---------

Signed-off-by: Jiri Daněk <[email protected]>
Signed-off-by: Mathew Wicks <[email protected]>
Co-authored-by: Mathew Wicks <[email protected]>
* feat: client ui frontend scaffolding

In this PR:
- UI frontend scaffolding
- Github Action for frontend and backend

Most of the content of this PR is extract from https://github.com/patternfly/patternfly-react-seed/tree/v6. Thank you so much patternfly team for the seed!

Signed-off-by: Eder Ignatowicz <[email protected]>

* Changes requested by code review

Signed-off-by: Eder Ignatowicz <[email protected]>

* Fixing icons

Signed-off-by: Eder Ignatowicz <[email protected]>

---------

Signed-off-by: Eder Ignatowicz <[email protected]>
* feat(ws): add `containerSecurityContext` to WorkspaceKind + cleanup descriptions

Signed-off-by: Mathew Wicks <[email protected]>

* feat(ws): make all optional fields go pointers

Signed-off-by: Mathew Wicks <[email protected]>

* feat(ws): remove `readOnlyRootFilesystem=true` from tests

Signed-off-by: Mathew Wicks <[email protected]>

---------

Signed-off-by: Mathew Wicks <[email protected]>
…low#22)

* feat(ws): implement a reconciliation loop for the workspace

Signed-off-by: Adem Baccara <[email protected]>

* remove comments

Signed-off-by: Adem Baccara <[email protected]>

* add correct rbac permission for controller

Signed-off-by: Adem Baccara <[email protected]>

* implemented collision handling using ownerReferences

Signed-off-by: Adem Baccara <[email protected]>

* update the status field during workspace reconciliation

Signed-off-by: Adem Baccara <[email protected]>

* add watcher to workspace kind

Signed-off-by: Adem Baccara <[email protected]>

* handle the case that multiple ports are specified for an image

Signed-off-by: Adem Baccara <[email protected]>

* generate correctly the StatefulSet spec

Signed-off-by: Adem Baccara <[email protected]>

* set status.state of the Workspace

Signed-off-by: Adem Baccara <[email protected]>

* add rbac permission for configmap

Signed-off-by: Adem Baccara <[email protected]>

* update dockerfile

Signed-off-by: Adem Baccara <[email protected]>

* mathew updates

Signed-off-by: Mathew Wicks <[email protected]>

* mathew updates 2

Signed-off-by: Mathew Wicks <[email protected]>

* mathew updates 3

Signed-off-by: Mathew Wicks <[email protected]>

* fix todos

Signed-off-by: Adem Baccara <[email protected]>

* mathew updates 4

Signed-off-by: Mathew Wicks <[email protected]>

* handle extraEnv value replacement

Signed-off-by: Adem Baccara <[email protected]>

* mathew updates 5

Signed-off-by: Mathew Wicks <[email protected]>

* mathew updates 6

Signed-off-by: Mathew Wicks <[email protected]>

---------

Signed-off-by: Adem Baccara <[email protected]>
Signed-off-by: Mathew Wicks <[email protected]>
Co-authored-by: Mathew Wicks <[email protected]>
* test(ws): add safety prompt for E2E test execution

Signed-off-by: Adem Baccara <[email protected]>

* mathew updates 1

Signed-off-by: Mathew Wicks <[email protected]>

---------

Signed-off-by: Adem Baccara <[email protected]>
Signed-off-by: Mathew Wicks <[email protected]>
Co-authored-by: Mathew Wicks <[email protected]>
* test(ws): add e2e tests

Signed-off-by: Adem Baccara <[email protected]>

* mathew updates 1

Signed-off-by: Mathew Wicks <[email protected]>

* mathew updates 2

Signed-off-by: Mathew Wicks <[email protected]>

---------

Signed-off-by: Adem Baccara <[email protected]>
Signed-off-by: Mathew Wicks <[email protected]>
Co-authored-by: Mathew Wicks <[email protected]>
* run the kubebuilder e2e test

Signed-off-by: Jiri Daněk <[email protected]>

* fixup cluster must be named kind

Signed-off-by: Jiri Daněk <[email protected]>

* fixup, specify kind version

Signed-off-by: Jiri Daněk <[email protected]>

* mathew commit 1

Signed-off-by: Mathew Wicks <[email protected]>

* mathew commit 2

Signed-off-by: Mathew Wicks <[email protected]>

---------

Signed-off-by: Jiri Daněk <[email protected]>
Signed-off-by: Mathew Wicks <[email protected]>
Co-authored-by: Mathew Wicks <[email protected]>
* feat(ws): populate the status.pauseTime on the workspace

Signed-off-by: Adem Baccara <[email protected]>

* test(ws): add unit test

Signed-off-by: Adem Baccara <[email protected]>

* mathew commit 1

Signed-off-by: Mathew Wicks <[email protected]>

---------

Signed-off-by: Adem Baccara <[email protected]>
Signed-off-by: Mathew Wicks <[email protected]>
Co-authored-by: Mathew Wicks <[email protected]>
…beflow#34)

* add validating webhook

Signed-off-by: Adem Baccara <[email protected]>

* add tests for workspacekind and workspace webhooks

Signed-off-by: Adem Baccara <[email protected]>

* re-add cert-manager

Signed-off-by: Adem Baccara <[email protected]>

* refactor  ValidateCreate and ValidateUpdate functions in wokrspaceKind webhook

Signed-off-by: Adem Baccara <[email protected]>

* add e2e test for webhooks

Signed-off-by: Adem Baccara <[email protected]>

* mathew refactor 1

Signed-off-by: Mathew Wicks <[email protected]>

* mathew refactor 2

Signed-off-by: Mathew Wicks <[email protected]>

* mathew refactor 3

Signed-off-by: Mathew Wicks <[email protected]>

---------

Signed-off-by: Adem Baccara <[email protected]>
Signed-off-by: Mathew Wicks <[email protected]>
Co-authored-by: Mathew Wicks <[email protected]>
* feat(ws): use controller-runtime with backend

Signed-off-by: Mathew Wicks <[email protected]>

* revert healthcheck to normal results

Signed-off-by: Mathew Wicks <[email protected]>

---------

Signed-off-by: Mathew Wicks <[email protected]>
* feat(ws): Notebooks 2.0 // Backend // List Workspaces API - II

In this PR:
- FUP for Notebooks 2.0 // Backend // List Workspaces API (kubeflow#60) review
- Create /api/v1/workspaces to return all workspaces
- Review API endpoints as requested

Signed-off-by: Eder Ignatowicz <[email protected]>

* Notebooks 2.0 // Backend // CRUD Workspaces API

In this PR:
- Created handlers and repositories for create, get and delete workspace
- Improved the type of our json response

Signed-off-by: Eder Ignatowicz <[email protected]>

* feat(ws): Notebooks 2.0 // Backend // List WorkspaceKinds

This PR builds on top of: kubeflow#61 and kubeflow#65

In this PR:
- Created handlers and repositories for get workspacekinds

This PR closes kubeflow#51

Signed-off-by: Eder Ignatowicz <[email protected]>

* mathew: fix linting

Signed-off-by: Mathew Wicks <[email protected]>

---------

Signed-off-by: Eder Ignatowicz <[email protected]>
Signed-off-by: Mathew Wicks <[email protected]>
Co-authored-by: Mathew Wicks <[email protected]>
* feat(ws): Notebooks 2.0 // Backend // List namespaces kubeflow#53

Signed-off-by: Eder Ignatowicz <[email protected]>

* adding test coverage

Signed-off-by: Eder Ignatowicz <[email protected]>

* ci: run controller and backend tests on pr

Signed-off-by: Mathew Wicks <[email protected]>

---------

Signed-off-by: Eder Ignatowicz <[email protected]>
Signed-off-by: Mathew Wicks <[email protected]>
Co-authored-by: Mathew Wicks <[email protected]>
…ow#137)

* chore: update controller kubebuilder

Signed-off-by: Mathew Wicks <[email protected]>

* chore: add new controller linting

Signed-off-by: Mathew Wicks <[email protected]>

* chore: update backend (similar to controller kubebuilder update)

Signed-off-by: Mathew Wicks <[email protected]>

* chore: add new backend linting

Signed-off-by: Mathew Wicks <[email protected]>

---------

Signed-off-by: Mathew Wicks <[email protected]>
kubeflow#140)

* Workspaces initial frontend

Signed-off-by: paulovmr <[email protected]>

* Fixing a CVE and cypress test

Signed-off-by: Eder Ignatowicz <[email protected]>

---------

Signed-off-by: paulovmr <[email protected]>
Signed-off-by: Eder Ignatowicz <[email protected]>
Co-authored-by: Eder Ignatowicz <[email protected]>
* test(ws): enhance e2e test setup and cleanup

Signed-off-by: Adem Baccara <[email protected]>

* code review fixes

Signed-off-by: Adem Baccara <[email protected]>

* remove env variable from e2e test GHA

Signed-off-by: Adem Baccara <[email protected]>

* lint fixes

Signed-off-by: Adem Baccara <[email protected]>

* mathew updates 1

Signed-off-by: Mathew Wicks <[email protected]>

---------

Signed-off-by: Adem Baccara <[email protected]>
Signed-off-by: Mathew Wicks <[email protected]>
Co-authored-by: Mathew Wicks <[email protected]>
* ci: add semantic PRs action

Signed-off-by: Adem Baccara <[email protected]>

* ci: add release.yaml

Signed-off-by: Adem Baccara <[email protected]>

* ci: update semantic pr action to latest version and use scopes instead of disalowScopes

Signed-off-by: Adem Baccara <[email protected]>

* keep only validate PR title

Signed-off-by: Adem Baccara <[email protected]>

---------

Signed-off-by: Adem Baccara <[email protected]>
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign kimwnasptd for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ElayAharoni ElayAharoni deleted the RHOAIENG-16563-Notebooks-V2-Workspace-Data-Vol-column branch December 12, 2024 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

Notebooks 2.0 // Frontend // Workspaces table // Workspace Data Vol column
7 participants