cyclops-ui / cyclops

Developer Friendly Kubernetes 👁️
https://cyclops-ui.com
Apache License 2.0
2.41k stars 781 forks source link

can not add repo url #562

Open jesusys opened 1 week ago

jesusys commented 1 week ago

Describe the bug A clear and concise description of what the bug is. when add a repo and it shows a failure with the message: yaml: line 3: mapping values are not allowed in this context

To Reproduce Steps to reproduce the behavior:

  1. Go to 'template'
  2. Click on 'add templates reference'
  3. Scroll down to 'Repository URL'
  4. my repo is "https://llm-gitlab.xxxxxx.com/xxxx/xxxxx"
  5. if i change repo to "https://llm.xxxxxx.com/xxxx/xxxxx" or "https://gitlab.xxxxxx.com/xxxx/xxxxx" is ok

Expected behavior A clear and concise description of what you expected to happen. i think repo name can't exist "-" Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

petar-cvit commented 1 week ago

Hey @jesusys, thanks for the issue.

I haven't tried fetching a template from a self-hosted GitLab. It's weird that it works on those hosts but not on llm-gitlab.

Judging by the message, I'd say that its the problem with Chart.yaml. Could you check if that file is correct.

If you think it might be easier, you can join our Discord, and we can try to debug it. Feel free to start a thread in the #questions

jesusys commented 1 week ago

Hey @jesusys, thanks for the issue.

I haven't tried fetching a template from a self-hosted GitLab. It's weird that it works on those hosts but not on llm-gitlab.

Judging by the message, I'd say that its the problem with Chart.yaml. Could you check if that file is correct.

If you think it might be easier, you can join our Discord, and we can try to debug it. Feel free to start a thread in the #questions

nobody reply me in discord. i clone the demo to my gitlab. , if host url is xxx.abc.com ,i can add template , if hosts url is xxx-yyy.abc.com, i can't add template. i test cyclops-ctrl/internal/template/git.go , func clone(repoURL, commit string, creds *auth.Credentials) (billy.Filesystem, error) api or interface,i can get gitlab's repo from host url xxx-yyy.abc.com. @petar-cvit