Skip to content

feat: adjust resolution service to provide repositories and component versions#1145

Merged
Skarlso merged 21 commits into
open-component-model:mainfrom
frewilhelm:migrate-cv-controller-v2
Nov 14, 2025
Merged

feat: adjust resolution service to provide repositories and component versions#1145
Skarlso merged 21 commits into
open-component-model:mainfrom
frewilhelm:migrate-cv-controller-v2

Conversation

@frewilhelm

Copy link
Copy Markdown
Contributor

What this PR does / why we need it

Which issue(s) this PR fixes

Fixes #693

@github-actions github-actions Bot added the size/s Small label Nov 4, 2025
@Skarlso Skarlso self-assigned this Nov 4, 2025
@Skarlso Skarlso force-pushed the migrate-cv-controller-v2 branch from 931f269 to cda001d Compare November 4, 2025 14:33
@Skarlso Skarlso changed the title Migrate Component Version Controller to V2 backed by resolution service feat: migrate Component Version Controller to V2 backed by resolution service Nov 4, 2025
@github-actions github-actions Bot added the kind/feature new feature, enhancement, improvement, extension label Nov 4, 2025
@frewilhelm frewilhelm self-assigned this Nov 4, 2025
@github-actions github-actions Bot added the size/l Large label Nov 6, 2025
@Skarlso

Skarlso commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

This f*cker RAN!

Ran 1 of 11 Specs in 15.933 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 10 Skipped
PASS | FOCUSED

@frewilhelm frewilhelm changed the title feat: migrate Component Version Controller to V2 backed by resolution service feat: adjust resolution service to provide repositories and component versions Nov 6, 2025
@Skarlso Skarlso force-pushed the migrate-cv-controller-v2 branch 4 times, most recently from 3eb1637 to e1ffa3b Compare November 10, 2025 12:31
frewilhelm and others added 10 commits November 10, 2025 16:37
Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>

Co-authored-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>

adjust component objects in test
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
…rough the cache

On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
@Skarlso Skarlso force-pushed the migrate-cv-controller-v2 branch from 564f8bf to 3c6b5d4 Compare November 10, 2025 15:38
@frewilhelm frewilhelm marked this pull request as ready for review November 10, 2025 16:02
@frewilhelm frewilhelm requested a review from a team as a code owner November 10, 2025 16:02
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
@Skarlso

Skarlso commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

I realised that the workers should be using the external worker context and NOT the request context. Because by the time they might be picking up the workitem the reconciler is done and the context would also be done so they would just be immediately cancelled.

@Skarlso

Skarlso commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

I added a migration path that uses these changes very nicely in the component version controller: #1188

It looks really neat and easy.

@jakobmoellerdev jakobmoellerdev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall good clean code. was a nice read

Comment thread bindings/go/plugin/manager/registries/componentversionrepository/registry.go Outdated
Comment thread kubernetes/controller/cmd/main.go Outdated
Comment thread kubernetes/controller/internal/plugins/plugin.go
Comment thread kubernetes/controller/internal/resolution/cached_repository.go
Comment thread kubernetes/controller/internal/resolution/cached_repository.go
Comment thread kubernetes/controller/internal/resolution/workerpool/workerpool.go
Comment thread kubernetes/controller/internal/resolution/workerpool/workerpool.go Outdated
Comment thread kubernetes/controller/internal/resolution/workerpool/workerpool.go Outdated
Comment thread kubernetes/controller/internal/resolution/workerpool/workerpool.go Outdated
Comment thread kubernetes/controller/internal/resolution/workerpool/workerpool.go
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
@Skarlso Skarlso force-pushed the migrate-cv-controller-v2 branch from 4a51c6c to 31cbcd7 Compare November 12, 2025 13:25
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
@Skarlso Skarlso force-pushed the migrate-cv-controller-v2 branch from 31cbcd7 to 6596d3b Compare November 12, 2025 13:31
Comment thread kubernetes/controller/internal/resolution/cached_repository.go Outdated
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
…assed in

On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>

@jakobmoellerdev jakobmoellerdev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good stuffs, lets see it break in prod :P

Comment thread kubernetes/controller/internal/resolution/workerpool/workerpool.go
…ion parameter

On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
…st work items

On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
fabianburth
fabianburth previously approved these changes Nov 13, 2025

@fabianburth fabianburth left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we type safety could be improved with generics here. But I might be wrong and we definitely do not have to tackle that right now.

Comment thread kubernetes/controller/internal/resolution/workerpool/workerpool.go
Comment thread kubernetes/controller/internal/setup/repository.go Outdated
Comment thread kubernetes/controller/internal/resolution/workerpool/workerpool.go
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
@Skarlso Skarlso dismissed stale reviews from fabianburth and jakobmoellerdev via 9a9ca05 November 13, 2025 15:53
@Skarlso Skarlso merged commit 20b3f98 into open-component-model:main Nov 14, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature new feature, enhancement, improvement, extension size/l Large size/s Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adjust resolution service to provide component version repository

5 participants