Skip to content

Recommended workflow for generating chartHash #77

@achernya

Description

@achernya

When using nixhelm, the charts including their chartHash are provided by the nixhelm repo (e.g., cilium at https://github.com/nix-community/nixhelm/blob/master/charts/cilium/cilium/default.nix). These hashes are themselves generated by the helmupdater get_hash function, which itself relies on the Nix buildsystem and the layout of the repository that nixhelm expects.

nixidy supports nixhelm, but also supports adding your own charts, which I see is the case in your example https://github.com/arnarg/cluster/blob/main/charts/ori-edge/k8s-gateway/default.nix. However, I can't find any documentation on how you're supposed to write/generate one of these stanzas.

What's the recommended workflow for doing so? The best I can come up with is "fork nixhelm, use the tooling there, then copy-paste" which doesn't seem optimal. I tried adding nixhelm.helmupdater to my own flake.nix, but then I run into the issue where the repository layout isn't compatible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions