krateoplatformops / core-provider

0 stars 2 forks source link

Helm Getter does not handle relative urls in index.yaml file #48

Closed matteogastaldello closed 4 months ago

matteogastaldello commented 4 months ago

Describe the bug The core-provider (v0.14.1) has troubles fetching a helm chart from a Nexus helm repository.

This is my composition:

apiVersion: core.krateo.io/v1alpha1
kind: CompositionDefinition
metadata:
  name: sprintgboot-webapp
  namespace: krateo-v2-system
spec:
  chart:
    url: http://nexus.insiel.it/repository/helm-hosted
    repo: springboot-webapp
    version: 0.1.0

According to this example the CompositionDefinition above should be correct.

However, the core-provider returns the following error:

Get "springboot-webapp-0.1.0.tgz": unsupported protocol scheme ""

matteogastaldello commented 4 months ago

The problem occurs when index.yaml file contains relative urls

apiVersion: v1

entries:

  krateo-springboot-webapp:

  - name: krateo-springboot-webapp

    description: A Helm chart for Kubernetes

    version: 0.1.1

    created: 2024-07-09T07:43:14.713Z

    appVersion: 0.1.0

    urls:

    - krateo-springboot-webapp-0.1.1.tgz

generated: 2024-07-09T08:18:29.019Z