Skip to content

refactor: move common component into each controller#702

Merged
google-oss-prow[bot] merged 1 commit intokubeflow:notebooks-v1from
yehuditkerido:remove_common_component
Nov 6, 2025
Merged

refactor: move common component into each controller#702
google-oss-prow[bot] merged 1 commit intokubeflow:notebooks-v1from
yehuditkerido:remove_common_component

Conversation

@yehuditkerido
Copy link

@yehuditkerido yehuditkerido commented Oct 30, 2025

  • Delete common component (OWNERS, go.mod, reconcilehelper/)
  • Copy reconcilehelper/util.go to both notebook-controller and tensorboard-controller
  • Update imports in both controllers to use local reconcilehelper
  • Remove common dependency from go.mod files
  • Update Dockerfiles to remove common component references

fixes: #700

@github-project-automation github-project-automation bot moved this to Needs Triage in Kubeflow Notebooks Oct 30, 2025
@google-oss-prow google-oss-prow bot added do-not-merge/work-in-progress area/controller area - related to controller components labels Oct 30, 2025
@google-oss-prow google-oss-prow bot added area/v1 area - version - kubeflow notebooks v1 size/L labels Oct 30, 2025
…Components

- Delete common component (OWNERS, go.mod, reconcilehelper/)
- Copy reconcilehelper/util.go to both notebook-controller and tensorboard-controller
- Update imports in both controllers to use local reconcilehelper
- Remove common dependency from go.mod files
- Update Dockerfiles to remove common component references

Signed-off-by: Yehudit Kerido <ykerido@ykerido-thinkpadp1gen7.raanaii.csb>
@yehuditkerido yehuditkerido force-pushed the remove_common_component branch 2 times, most recently from 9693766 to e88a97e Compare October 30, 2025 14:27
@yehuditkerido yehuditkerido marked this pull request as ready for review October 30, 2025 14:52
@andyatmiami
Copy link
Contributor

/ok-to-test

@andyatmiami
Copy link
Contributor

/lgtm

confirmed the reconcilehelper util.go file that has been duplicated in NBC and TBC exactly matches the original common util.go

MD5 (/tmp/original_util.go) = 338cebd04529f59feae5f02bc7997e23
MD5 (components/notebook-controller/reconcilehelper/util.go) = 338cebd04529f59feae5f02bc7997e23
MD5 (components/tensorboard-controller/reconcilehelper/util.go) = 338cebd04529f59feae5f02bc7997e23

@google-oss-prow google-oss-prow bot added the lgtm label Nov 4, 2025
@thesuperzapper thesuperzapper changed the title refactor: Remove Common Component and Copy Shared Code into Relevant … refactor: move common component into each controller Nov 6, 2025
@thesuperzapper
Copy link
Member

Thanks @yehudit1987 !

/approve

@google-oss-prow
Copy link

[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

Details 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

@google-oss-prow google-oss-prow bot merged commit 8c44fd7 into kubeflow:notebooks-v1 Nov 6, 2025
25 checks passed
@github-project-automation github-project-automation bot moved this from Needs Triage to Done in Kubeflow Notebooks Nov 6, 2025
asaadbalum added a commit to asaadbalum/notebooks that referenced this pull request Nov 9, 2025
…books

- Updated module declarations in 3 go.mod files (notebook-controller, tensorboard-controller, pvcviewer-controller)
- Updated all internal import statements in Go source files to match new module paths
- Updated reconcilehelper imports to use local paths (after PR kubeflow#702 moved reconcilehelper into each controller)
- Verified all components compile successfully

Fixes kubeflow#699

Signed-off-by: Asaad Balum <asaad.balum@gmail.com>
@yehuditkerido yehuditkerido deleted the remove_common_component branch November 9, 2025 12:56
google-oss-prow bot pushed a commit that referenced this pull request Nov 27, 2025
* chore: Update Go module paths from kubeflow/kubeflow to kubeflow/notebooks

- Updated module declarations in 3 go.mod files (notebook-controller, tensorboard-controller, pvcviewer-controller)
- Updated all internal import statements in Go source files to match new module paths
- Updated reconcilehelper imports to use local paths (after PR #702 moved reconcilehelper into each controller)
- Verified all components compile successfully

Fixes #699

Signed-off-by: Asaad Balum <asaad.balum@gmail.com>

* chore: Update PROJECT files to use kubeflow/notebooks paths

- Updated all repo and API paths in PROJECT files
- Changed pvcviewer projectName from 'pvc-viewer' to 'pvcviewer-controller'

Addresses feedback from review

Signed-off-by: Asaad Balum <asaad.balum@gmail.com>

* mathew: fix rename of `pvc-viewer` path

Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>

---------

Signed-off-by: Asaad Balum <asaad.balum@gmail.com>
Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>
Co-authored-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>
utruong309 pushed a commit to utruong309/notebooks that referenced this pull request Dec 8, 2025
- Delete common component (OWNERS, go.mod, reconcilehelper/)
- Copy reconcilehelper/util.go to both notebook-controller and tensorboard-controller
- Update imports in both controllers to use local reconcilehelper
- Remove common dependency from go.mod files
- Update Dockerfiles to remove common component references

Signed-off-by: Yehudit Kerido <ykerido@ykerido-thinkpadp1gen7.raanaii.csb>
Co-authored-by: Yehudit Kerido <ykerido@ykerido-thinkpadp1gen7.raanaii.csb>
Signed-off-by: utruong309 <uyenthutruong09@gmail.com>
utruong309 pushed a commit to utruong309/notebooks that referenced this pull request Dec 8, 2025
* chore: Update Go module paths from kubeflow/kubeflow to kubeflow/notebooks

- Updated module declarations in 3 go.mod files (notebook-controller, tensorboard-controller, pvcviewer-controller)
- Updated all internal import statements in Go source files to match new module paths
- Updated reconcilehelper imports to use local paths (after PR kubeflow#702 moved reconcilehelper into each controller)
- Verified all components compile successfully

Fixes kubeflow#699

Signed-off-by: Asaad Balum <asaad.balum@gmail.com>

* chore: Update PROJECT files to use kubeflow/notebooks paths

- Updated all repo and API paths in PROJECT files
- Changed pvcviewer projectName from 'pvc-viewer' to 'pvcviewer-controller'

Addresses feedback from review

Signed-off-by: Asaad Balum <asaad.balum@gmail.com>

* mathew: fix rename of `pvc-viewer` path

Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>

---------

Signed-off-by: Asaad Balum <asaad.balum@gmail.com>
Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>
Co-authored-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>
Signed-off-by: utruong309 <uyenthutruong09@gmail.com>
utruong309 pushed a commit to utruong309/notebooks that referenced this pull request Jan 8, 2026
- Delete common component (OWNERS, go.mod, reconcilehelper/)
- Copy reconcilehelper/util.go to both notebook-controller and tensorboard-controller
- Update imports in both controllers to use local reconcilehelper
- Remove common dependency from go.mod files
- Update Dockerfiles to remove common component references

Signed-off-by: Yehudit Kerido <ykerido@ykerido-thinkpadp1gen7.raanaii.csb>
Co-authored-by: Yehudit Kerido <ykerido@ykerido-thinkpadp1gen7.raanaii.csb>
Signed-off-by: utruong309 <uyenthutruong09@gmail.com>
utruong309 pushed a commit to utruong309/notebooks that referenced this pull request Jan 8, 2026
* chore: Update Go module paths from kubeflow/kubeflow to kubeflow/notebooks

- Updated module declarations in 3 go.mod files (notebook-controller, tensorboard-controller, pvcviewer-controller)
- Updated all internal import statements in Go source files to match new module paths
- Updated reconcilehelper imports to use local paths (after PR kubeflow#702 moved reconcilehelper into each controller)
- Verified all components compile successfully

Fixes kubeflow#699

Signed-off-by: Asaad Balum <asaad.balum@gmail.com>

* chore: Update PROJECT files to use kubeflow/notebooks paths

- Updated all repo and API paths in PROJECT files
- Changed pvcviewer projectName from 'pvc-viewer' to 'pvcviewer-controller'

Addresses feedback from review

Signed-off-by: Asaad Balum <asaad.balum@gmail.com>

* mathew: fix rename of `pvc-viewer` path

Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>

---------

Signed-off-by: Asaad Balum <asaad.balum@gmail.com>
Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>
Co-authored-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>
Signed-off-by: utruong309 <uyenthutruong09@gmail.com>
utruong309 pushed a commit to utruong309/notebooks that referenced this pull request Jan 8, 2026
- Delete common component (OWNERS, go.mod, reconcilehelper/)
- Copy reconcilehelper/util.go to both notebook-controller and tensorboard-controller
- Update imports in both controllers to use local reconcilehelper
- Remove common dependency from go.mod files
- Update Dockerfiles to remove common component references

Signed-off-by: Yehudit Kerido <ykerido@ykerido-thinkpadp1gen7.raanaii.csb>
Co-authored-by: Yehudit Kerido <ykerido@ykerido-thinkpadp1gen7.raanaii.csb>
Signed-off-by: utruong309 <uyenthutruong09@gmail.com>
utruong309 pushed a commit to utruong309/notebooks that referenced this pull request Jan 8, 2026
* chore: Update Go module paths from kubeflow/kubeflow to kubeflow/notebooks

- Updated module declarations in 3 go.mod files (notebook-controller, tensorboard-controller, pvcviewer-controller)
- Updated all internal import statements in Go source files to match new module paths
- Updated reconcilehelper imports to use local paths (after PR kubeflow#702 moved reconcilehelper into each controller)
- Verified all components compile successfully

Fixes kubeflow#699

Signed-off-by: Asaad Balum <asaad.balum@gmail.com>

* chore: Update PROJECT files to use kubeflow/notebooks paths

- Updated all repo and API paths in PROJECT files
- Changed pvcviewer projectName from 'pvc-viewer' to 'pvcviewer-controller'

Addresses feedback from review

Signed-off-by: Asaad Balum <asaad.balum@gmail.com>

* mathew: fix rename of `pvc-viewer` path

Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>

---------

Signed-off-by: Asaad Balum <asaad.balum@gmail.com>
Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>
Co-authored-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>
Signed-off-by: utruong309 <uyenthutruong09@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved area/controller area - related to controller components area/v1 area - version - kubeflow notebooks v1 lgtm ok-to-test size/L

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants