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

[fluxcd] Kubeapps does not support fetching older versions using relative paths. #7740

Open
kvaps opened this issue Apr 25, 2024 · 0 comments
Labels
kind/bug An issue that reports a defect in an existing feature

Comments

@kvaps
Copy link
Contributor

kvaps commented Apr 25, 2024

Describe the bug

Kubeapps does not support fetching older versions with relative paths

To Reproduce
Steps to reproduce the behavior:

  1. Create Helm repository with few version of the same package, eg tcp-balancer-0.1.0.tgz and tcp-balancer-0.2.0.tgz
  2. Create index using helm repo index command, and do not specify --url parameter, so any paths will be relative
  3. Publish this repository using some HTTP-server
  4. Connect it to kubeapps using FluxCD
  5. Try installing older version. Also try upgrade some installed package from older version to newer one

Expected behavior
Older versions available to install and upgrade from

Screenshots

изображение

изображение

изображение

Desktop (please complete the following information):

  • Version 15.0.2
  • Kubernetes version v1.29
  • Flux version:
flux: v2.2.3
distribution: flux-2.2.3
helm-controller: v0.37.4
image-automation-controller: v0.37.1
image-reflector-controller: v0.31.2
kustomize-controller: v1.2.2
notification-controller: v1.2.4
source-controller: v1.2.4

Additional context

logs:

I0425 15:57:08.005584       1 chart_cache.go:451] Redis [EXISTS helmcharts:cozy-public:cozystack-apps/tcp-balancer:0.1.0]: 0
I0425 15:57:08.005660       1 chart_cache.go:459] -syncHandler(chartCache-worker-1, helmcharts:cozy-public:cozystack-apps/tcp-balancer:0.1.0)
E0425 15:57:08.005682       1 chart_cache.go:254] Error processing helmcharts:cozy-public:cozystack-apps/tcp-balancer:0.1.0 (giving up): Get "tcp-balancer-0.1.0.tgz": unsupported protocol sc
heme ""
E0425 15:57:08.005739       1 chart_cache.go:258] error deleting key [helmcharts:cozy-public:cozystack-apps/tcp-balancer:0.1.0] due to: couldn't create key for object helmcharts:cozy-public:
cozystack-apps/tcp-balancer:0.1.0: unexpected object in chartCacheKeyFunc: [string]
E0425 15:57:08.005776       1 chart_cache.go:260] error syncing key [helmcharts:cozy-public:cozystack-apps/tcp-balancer:0.1.0] due to: Get "tcp-balancer-0.1.0.tgz": unsupported protocol sche
me ""
I0425 15:57:08.006887       1 chart_cache.go:262] -processNextWorkItem(chartCache-worker-1)
I0425 15:57:08.007015       1 chart_cache.go:207] +processNextWorkItem(chartCache-worker-1)
I0425 15:57:08.006904       1 chart_cache.go:480] +Fetch(helmcharts:cozy-public:cozystack-apps/tcp-balancer:0.1.0)
I0425 15:57:08.007268       1 chart_cache.go:489] Redis [GET helmcharts:cozy-public:cozystack-apps/tcp-balancer:0.1.0]: Nil
I0425 15:57:08.007286       1 server.go:253] -fluxv2 GetAvailablePackageDetail
I0425 15:57:08.113822       1 server.go:208] "+resources GetResources " cluster="default" namespace="tenant-root"
I0425 15:57:08.114470       1 packages.go:248] "+core GetInstalledPackageResourceRefs" cluster="default" namespace="tenant-root" identifier="tcp-balancer-ghfgh"
I0425 15:57:08.114999       1 server.go:466] "+fluxv2 GetInstalledPackageResourceRefs" cluster="default" namespace="tenant-root" id="tcp-balancer-ghfgh"
I0425 15:57:08.137275       1 resourcerefs.go:96] "+resourcerefs GetInstalledPackageResourceRefs" helmReleaseName="tenant-root/tcp-balancer-ghfgh"
E0425 15:57:08.147227       1 server.go:301] Unable to watch resource api_version:"apps/v1" kind:"Deployment" name:"tcp-balancer-ghfgh-haproxy" namespace:"tenant-root": unknown
@kvaps kvaps added the kind/bug An issue that reports a defect in an existing feature label Apr 25, 2024
kvaps added a commit to aenix-io/cozystack that referenced this issue Apr 25, 2024
kvaps added a commit to aenix-io/cozystack that referenced this issue Apr 25, 2024
themoriarti pushed a commit to aenix-io/cozystack that referenced this issue Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug An issue that reports a defect in an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant