Skip to content

Helmfile applies "oneOf" rule on "chart" and "inherit" keys #4607

Open
@josevictorferreira

Description

@josevictorferreira

Area with issue?

JSON Schema

✔️ Expected Behavior

It should allow the following:

releases:
  - name: rabbitmq
    chart: oci://registry-1.docker.io/bitnamicharts/rabbitmq
    inherit:
      - template: default-self-hosted-service

❌ Actual Behavior

But the actual behavior: Matches multiple schemas when only one must validate.

I can't find anywhere in the Helmfile documentation that using both keys should be avoided. I think it's implying that you should declare the “chart” value in the template, but that's not always possible if you want to use a chart that does not have the name related with the Release name.

JSON, YAML, or TOML file that does not work.

templates:
  default-self-hosted-service:
    namespace: custom-namespace
    missingFileHandler: Warn

releases:
  - name: rabbitmq
    chart: oci://registry-1.docker.io/bitnamicharts/rabbitmq
    inherit:
      - template: default-self-hosted-service

IDE or code editor.

None

Are you making a PR for this?

Yes, I will create a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedissue:bugReport errors or unexpected behavior (auto-generated by issue forms)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions