argocd-autopilot icon indicating copy to clipboard operation
argocd-autopilot copied to clipboard

Unable to install example from README

Open pkernevez opened this issue 3 years ago • 3 comments

When creating a project with readme example, we always have a FATAL error with the message 'authentication required'.

We are using argocd-autopilot 0.2.23.

argocd-autopilot app create demoapp --app github.com/argoproj-labs/argocd-autopilot/examples/demo-app/ -p testing --log-level=debug
DEBU[2021-11-10T16:57:34+01:00] starting with options:                        repoURL="https://gitea.kleis.ch/pke/argocd-gitops.git" revision=
INFO[2021-11-10T16:57:34+01:00] cloning git repository: https://gitea.kleis.ch/pke/argocd-gitops.git
DEBU[2021-11-10T16:57:34+01:00] cloning git repo                              url="https://gitea.kleis.ch/pke/argocd-gitops.git"
Enumerating objects: 27, done.
Counting objects: 100% (27/27), done.
Compressing objects: 100% (25/25), done.
Total 27 (delta 4), reused 0 (delta 0)
INFO[2021-11-10T16:57:40+01:00] using revision: "", installation path: "/"
DEBU[2021-11-10T16:57:40+01:00] repository is ok
INFO[2021-11-10T16:57:40+01:00] cloning repo: 'https://github.com/argoproj-labs/argocd-autopilot.git', to infer app type from path 'examples/demo-app/'
DEBU[2021-11-10T16:57:40+01:00] cloning git repo                              url="https://github.com/argoproj-labs/argocd-autopilot.git"
FATA[2021-11-10T16:57:46+01:00] authentication required

We try several configurations and git server (github and gitea) with the same behaviour. Adding a --apps-repo parameter doesn't change it.

pkernevez avatar Nov 10 '21 16:11 pkernevez

+1

pblgomez avatar Aug 10 '22 20:08 pblgomez

The issue still exists

TomyLobo avatar Nov 30 '22 18:11 TomyLobo

Here's a guess: I think you can work around this by specifying an APPS_GIT_TOKEN for github. Shouldn't be necessary in order to just read a project, but I guess the GIT_TOKEN takes precedence otherwise. This would mean this affects everyone who doesn't have their control repo on GitHub.

Here's what I know: Adding "--type kustomize" to the command line tells autopilot which type of application it is, meaning it doesn't have to clone it to detect that.

Here's my opinion: In the end, autopilot basically just puts a link to the file on github into your repo. Can we have a better "testing" example than that? Something where there's actually something going on in the control repo itself? Maybe provide both kinds of examples.

TomyLobo avatar Nov 30 '22 19:11 TomyLobo