Skip to content

feat: migrate the component version controller to v2 #1188

Merged
jakobmoellerdev merged 77 commits into
open-component-model:mainfrom
Skarlso:migrate-cv-controller-v2-part-2
Dec 2, 2025
Merged

feat: migrate the component version controller to v2 #1188
jakobmoellerdev merged 77 commits into
open-component-model:mainfrom
Skarlso:migrate-cv-controller-v2-part-2

Conversation

@Skarlso

@Skarlso Skarlso commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

What this PR does / why we need it

Part of open-component-model/ocm-project#753

Which issue(s) this PR fixes

Fixes open-component-model/ocm-project#753

@github-actions github-actions Bot added kind/feature new feature, enhancement, improvement, extension size/l Large labels Nov 11, 2025
@Skarlso

Skarlso commented Nov 11, 2025

Copy link
Copy Markdown
Contributor Author

If the changes in #1145 are accepted, this how the migration would look like. ( except for verification which is incomplete yet. )

frewilhelm and others added 8 commits November 18, 2025 08:01
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>
@Skarlso Skarlso force-pushed the migrate-cv-controller-v2-part-2 branch 2 times, most recently from 509f7e1 to f65f132 Compare November 18, 2025 07:09
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-part-2 branch from f65f132 to 41ba436 Compare November 18, 2025 07:14
@Skarlso

Skarlso commented Nov 19, 2025

Copy link
Copy Markdown
Contributor Author

Interesting, this didn't occur before. Finally was able to run this locally and got:

failed to decode repository spec: *runtime.Raw is not a valid registered type and cannot be decoded: prototype not found in registry

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

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
Skarlso added a commit that referenced this pull request Nov 20, 2025
<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it

Related to the migration effort:
#1188

The legacy unversioned registration is missing here because old ocm
doesn't have versions from time to time.

#### Which issue(s) this PR fixes
<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->

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

Skarlso commented Nov 20, 2025

Copy link
Copy Markdown
Contributor Author
Screenshot 2025-11-20 at 10 17 22
[kubernetes/controller:test/e2e] ------------------------------
[kubernetes/controller:test/e2e]
[kubernetes/controller:test/e2e] Ran 8 of 8 Specs in 151.760 seconds
[kubernetes/controller:test/e2e] SUCCESS! -- 8 Passed | 0 Failed | 0 Pending | 0 Skipped
[kubernetes/controller:test/e2e] --- PASS: TestE2E (151.76s)
[kubernetes/controller:test/e2e] PASS

This is actually passing locally. Sooooo... 🤔

@Skarlso

Skarlso commented Nov 20, 2025

Copy link
Copy Markdown
Contributor Author

I ran this a couple of times with latest OCM as a binary on my machine and it's working. I'm wondering if I just need to update ocm. 🤔 Maybe I'm running into the yq problem.

@Skarlso

Skarlso commented Nov 20, 2025

Copy link
Copy Markdown
Contributor Author

Oh joy.

      - name: Setup ocm
        uses: open-component-model/ocm-setup-action@655f3525fd283ca7d22e6b2ceec42324331df401 # v1.0.0

@Skarlso

Skarlso commented Nov 20, 2025

Copy link
Copy Markdown
Contributor Author

Sadly, I can't try latest with that action, but let's see if the rc fixes something. If not, I'm willing to ignore this error for now.

Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
@frewilhelm

Copy link
Copy Markdown
Contributor

@fabianburth @jakobmoellerdev Thanks a lot for your reviews! I adjusted most of the requests and created follow-ups for the rest.

Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
@frewilhelm frewilhelm force-pushed the migrate-cv-controller-v2-part-2 branch from 83aa426 to 329f24d Compare November 28, 2025 19:00
@gitguardian

gitguardian Bot commented Dec 2, 2025

Copy link
Copy Markdown

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them.
While these secrets were previously flagged, we no longer have a reference to the
specific commits where they were detected. Once a secret has been leaked into a git
repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
@jakobmoellerdev jakobmoellerdev enabled auto-merge (squash) December 2, 2025 11:28
@jakobmoellerdev jakobmoellerdev merged commit fa7cf90 into open-component-model:main Dec 2, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/github-actions Changes on GitHub Actions or within `.github/` directory kind/feature new feature, enhancement, improvement, extension size/l Large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Finish migration of Component Controller to V2 backed by resolution service

5 participants