Open jamesla opened 5 months ago
Hello @jamesla ,
ref
option. Before v1.0.0 that was just released today, it was defaulting to master
which does not exists on your repo, main
exists however. Now, default branch is automatically discovered. @
) was mandatory even if empty. Now, if chart(s) are in the root of the repository, the path separator can be ignored. Please try again with:
helm-git
version < 1.0.0:
dependencies:
- name: weskit
version: "0.2.0"
repository: "git+https://gitlab.com/one-touch-pipeline/weskit/helm-deployment@?ref=main"
helm-git
version >= 1.2.0:
dependencies:
- name: weskit
version: "0.2.0"
repository: "git+https://gitlab.com/one-touch-pipeline/weskit/helm-deployment"
Note that I highly recommend pinning Git hash or at least tags with the ref
option.
Let me know if it works for you so I can close this issue.
Regards
@jamesla Please reopen the issue if needed.
Thanks @aslafy-z sorry I didn't see your reply.
So I've tried your suggestion with the updated version of helm-git but it's asking me for github credentials - however this is an open source repository.
You can see it's open source here: https://gitlab.com/one-touch-pipeline/weskit/helm-deployment
dependencies:
- name: weskit
version: "0.2.0"
repository: "git+https://gitlab.com/one-touch-pipeline/weskit/helm-deployment@?ref=main"
Why is it asking for credentials?
@aslafy-z also it looks like reopening issues is disabled as the button is not appearing
I could not reproduce your issue. Here's the steps I used:
Open up https://labs.play-with-docker.com/ and create a new instance
Setup
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
helm plugin install https://github.com/aslafy-z/helm-git --version 1.3.0
helm create mychart
cd mychart
cat <<EOF >> Chart.yaml
dependencies:
- name: weskit
version: "0.2.0"
repository: "git+https://gitlab.com/one-touch-pipeline/weskit/helm-deployment@?ref=main"
EOF
helm dependency build
helm template .
The dependency build is a bit slow, there might be some enhancements to do in this regard.
I would recommend you to check your Helm managed repos (helm repo list
) and delete any non relevant ones. They may be refreshed by Helm while working on this Helm build.
Given the following helm chart repo
https://gitlab.com/one-touch-pipeline/weskit/helm-deployment
It's not possible to add as a subchart IE to reproduce
and running
helm dependency update
It asks for a username
Assuming this is because of gitlab projects making the URI have 3 sections.
Here is the public repo https://gitlab.com/one-touch-pipeline/weskit/helm-deployment
Is gitlab supported?