-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor charts
definition in zarf.yaml
#2245
Comments
propose a schema that looks like below. This is based on the examples/helm-charts within the Zarf repository. Non changed fields were taken out for brevity. Exactly one of the following field will exist for each - name: podinfo-repo-new
helm:
url: https://stefanprodan.github.io/podinfo
name: podinfo # replaces repoName since it's only applicable for helm chart repositories
version: 6.4.0
- name: podinfo-git-new
git:
url: https://stefanprodan.github.io/[email protected]
path: charts/podinfo
# no version field, use chart.yaml version field at that git tag
- name: podinfo-oci-new
oci:
url: oci://ghcr.io/stefanprodan/charts/podinfo
version: 6.4.0
- name: podinfo-local-same
local:
path: chart
# no version field, use local chart.yaml version |
It should be noted that in the current Zarf schema the zarf/src/internal/packager/helm/repo.go Lines 44 to 53 in 10bf746
zarf/src/internal/packager/helm/repo.go Lines 156 to 163 in 10bf746
|
Another thing we should consider is if we want to replace the If we were to do this, we would likely also want to look at the repo syntax and allow a similar way to bring in repos. However, the two cases differ. A user will always want a specific commit in a git repo for Helm, whereas many times users will want to bring in the entire repo for gitrepos gitops cases. |
Describe what should be investigated or refactored
It would be worth taking some time to refactor the
charts
definition in thezarf.yaml
to enhance user understanding of the keys such asrepoName
andgitPath
which are usually non-intuitive for users.repoName
really means the name of a chart in a Helm Repo andgitPath
means the path of a chart in agit
repository which are not obvious to folks not familiar with Zarf.Links to any relevant code
https://github.com/defenseunicorns/zarf/blob/f039affe91b664f601b274a5e66d29bf030ca75f/src/types/component.go#L92
Additional context
These fields have come up with questions a few times in user questions in our
k8s
slack.The text was updated successfully, but these errors were encountered: