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

Error during k0rdent installation for dev mode #867

Open
bnallapeta opened this issue Jan 7, 2025 · 0 comments
Open

Error during k0rdent installation for dev mode #867

bnallapeta opened this issue Jan 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@bnallapeta
Copy link
Collaborator

Describe the bug

During a local installation using make dev-apply, I get the following error:

2025-01-07T06:58:17Z	ERROR	failed to create Management object	{"controller": "release", "controllerGroup": "hmc.mirantis.com", "controllerKind": "Release", "Release": {"name":""}, "namespace": "", "name": "", "reconcileID": "c4ad7224-a814-464b-ad34-eca7e63be5f6", "controller": "ReleaseController", "error": "expected 1 Release with version , found 0"}

Although, the Release object exists on the cluster, the controller isn't able to pick it up. I suspect that the issue might be with how we are packing the helm charts vs how we are trying to fetch them.

During the build process, we push the images with tags such as 0.0.3, 0.0.4, 0.0.5 etc. eg: ghcr.io/bnallapeta/charts/hmc-templates:0.0.5

But the Release object is given the tag version: 0.0.5-43-g15ab847 - the suffix here being Git hash (coming from here).

And hence the status of the Release object shows this. It is coming from here:

status:
  conditions:
  - lastTransitionTime: "2025-01-07T07:33:05Z"
    message: 'HelmRelease hmc-system/hmc-0-0-5-tpl is not ready yet. HelmChart ''hmc-system/hmc-0-0-5-tpl''
      is not ready: chart pull error: failed to download chart for remote reference:
      failed to get ''oci://ghcr.io/bnallapeta/charts/hmc-templates:0.0.5-43-g15ab847'':
      ghcr.io/bnallapeta/charts/hmc-templates:0.0.5-43-g15ab847: not found'
    observedGeneration: 1
    reason: Failed
    status: "False"
    type: TemplatesCreated
  observedGeneration: 1

I see this only while using another GHCR repo for images and charts and not while using the local registry.

To Reproduce
Steps to reproduce the behavior:

  1. Set IMG and REGISTRY_REPO to a separate GHCR repo - eg: ghcr.io/bnallapeta
  2. Run make dev-apply

Expected behavior
This conflict should not occur. Installation should proceed as expected with all k0rdent components installed.

@bnallapeta bnallapeta added the bug Something isn't working label Jan 7, 2025
@github-project-automation github-project-automation bot moved this to Todo in k0rdent Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant