Skip to content

OCI ad-hoc dependencies don't work like regular ad-hoc dependencies #1756

Description

@dschmidt

Operating system

openSUSE Tumbleweed

Helmfile Version

1.0.0-rc.7

Helm Version

v3.15.4

Bug description

When I use an OCI repository in an ad-hoc dependency I see an error like this:

in ./helmfile.yaml.gotmpl: [failed reading adhoc dependencies: exit status 1

COMMAND:
  helm repo list

OUTPUT:
  Error: no repositories to show]

I have found a workaround that semi-works, by specifying

chart: "oci://{{ .Values.imageRegistry.domain }}/bitnami/postgresql"

in the dependency, it does work - but I cannot specify skipTLSVerify: true there.

I would anyhow expect that I can just use the OCI repository just like any repository by just specifying name/chart, like it's documented (including the skipTLSVerify option).

Example helmfile.yaml

repositories:
    - name: bitnami-mirror
      url: "{{ .Values.imageRegistry.domain }}/bitnami"
      oci: true
      skipTLSVerify: true

releases:
  - name: whatever
    namespace: whatever
    chart: ./charts/whatever
    dependencies:
      - chart: "bitnami-mirror/postgresql"
        version: "15.5.27"

Error message you've seen (if any)

see above

Steps to reproduce

i don't have a public oci registry for reproducing this

Working Helmfile Version

0.169 and 1rc7 both fail

Relevant discussion

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions