Description
Currently, the helm input method is currently able to fetch helm charts from OCI registries by specifying it with an oci prefix, as shown below.
resources:
- name: podinfo-chart
type: helmChart
input:
type: helm/v1
helmRepository: oci://ghcr.io/stefanprodan/charts/podinfo:6.9.1
repository: charts/podinfo:6.9.1
Since the helm input method currently ALWAYS returns a consumer identity of type HelmChartRepository, the credential look up fails.
identity, err = runtime.ParseURLToIdentity(helm.HelmRepository)
if err != nil {
return nil, fmt.Errorf("error parsing helm repository URL to identity: %w", err)
}
identity.SetType(runtime.NewUnversionedType(LegacyHelmChartConsumerType))
(see here: https://github.com/open-component-model/open-component-model/blob/a3c1debc152db69e292d608eb69a472267e7ddc9/bindings/go/helm/input/method.go#L73)
Previously, this worked because we registered oci for AnyConsumerIdentityType, so it served as fallback. This behaviour has been removed as part of a recent issue.
Done Criteria
Description
Currently, the helm input method is currently able to fetch helm charts from OCI registries by specifying it with an
ociprefix, as shown below.Since the helm input method currently ALWAYS returns a consumer identity of type
HelmChartRepository, the credential look up fails.(see here: https://github.com/open-component-model/open-component-model/blob/a3c1debc152db69e292d608eb69a472267e7ddc9/bindings/go/helm/input/method.go#L73)
Previously, this worked because we registered oci for
AnyConsumerIdentityType, so it served as fallback. This behaviour has been removed as part of a recent issue.Done Criteria