open-component-model / MPAS

Repository for the Core of MPAS.
Apache License 2.0
1 stars 1 forks source link

chore: update to use latest controllers and ocm #204

Closed Skarlso closed 6 months ago

Skarlso commented 7 months ago

Description

➜  mpas git:(update-components-1) ✗ ./bin/mpas bootstrap github --owner skarlso --repository=mpas-test-project --personal --registry ghcr.io/skarlso/mpas-bootstrap
Running mpas bootstrap ...
 ✓   Preparing Management repository mpas-test-project
 ✓   Fetching bootstrap component from ghcr.io/skarlso/mpas-bootstrap
 ✓   Installing flux with version v2.1.2
 ✓   Installing cert-manager with version v1.13.2
 ✓   Reconciling bootstrap components
 ✓   Waiting for cert-manager to be available
 ✓   Generating external-secrets-operator manifest with version v0.9.9
 ✓   Generating git-controller manifest with version v0.12.0
 ✓   Generating mpas-product-controller manifest with version v0.11.0
 ✓   Generating mpas-project-controller manifest with version v0.6.0
 ✓   Generating ocm-controller manifest with version v0.19.0
 ✓   Generating replication-controller manifest with version v0.13.0
 ✓   Generating certificate manifests
 ✓   Reconciling component manifests
 ✓   Waiting for components to be ready

Bootstrap completed successfully!

So far so go. I'm going through the demo now, and also update the go modules in MPAS.

What type of PR is this? (check all applicable)

Related Tickets & Documents

Screenshots

Added tests?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Added e2e-tests?

Added to documentation?

Checklist:

github-actions[bot] commented 7 months ago

Mend Scan Summary: :x:

Repository: open-component-model/MPAS

VIOLATION DESCRIPTION NUMBER OF VIOLATIONS
HIGH/CRITICAL SECURITY VULNERABILITIES 0
MAJOR UPDATES AVAILABLE 0
LICENSE REQUIRES REVIEW 0
LICENSE RISK HIGH 7
RESTRICTIED LICENSE FOR ON-PREMISE DELIVERY 0

Detailed Logs: mend-scan-> Generate Report Mend UI

Skarlso commented 7 months ago

The latest ocm version runs into this issue:

adding resource ociImage: "name"="image","version"="6.3.5-static"...
time="2024-03-22T13:33:09Z" level=info msg="trying next host" error="failed to do request: Head \"[https://gitea.ocm.dev/v2/software-provider/podinfo/manifests/6.3.5-static\](https://gitea.ocm.dev/v2/software-provider/podinfo/manifests/6.3.5-static/)": tls: failed to verify certificate: x509: certificate signed by unknown authority" [host=gitea.ocm.dev](http://host=gitea.ocm.dev/)
Error: failed adding component "[ocm.software/demos/podinfo](http://ocm.software/demos/podinfo)"(componentfile.yaml[1][1]): cannot add resource "image"(componentfile.yaml[1][1][resources][0]): cannot determine digest: failed to do request: Head "https://gitea.ocm.dev/v2/software-provider/podinfo/manifests/6.3.5-static": tls: failed to verify certificate: x509: certificate signed by unknown authority

Meanwhile, ocm v0.3.0 works perfectly fine. I need to figure out what's the problem.

Skarlso commented 7 months ago

Finally found the error! The build operations wasn't injecting the necessary certificate!

Skarlso commented 7 months ago

What's left: update the go modules as well. At least those that are referenced for some reason or the other.

Skarlso commented 6 months ago

Okay, finally found the right frigging configuration of modules to work together. Now I need to test the installation and building process.

Skarlso commented 6 months ago

Ugh, seems like, I would have to update the test framework and flux and everything and that's just another week worth of updating, I'm not willing to do rn.

Skarlso commented 6 months ago

Right, going to skip updating the controller versions in MPAS. The builder is going to build the right version and the component will have the right version. To update the code, I would have to update the testing framework first, and update flux version and update every other controller as well again.

Which I'm not going to do now.