Skip to content
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

Unable to install example from README #202

Open
pkernevez opened this issue Nov 10, 2021 · 3 comments
Open

Unable to install example from README #202

pkernevez opened this issue Nov 10, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@pkernevez
Copy link

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.

@roi-codefresh roi-codefresh added the bug Something isn't working label Mar 10, 2022
@pblgomez
Copy link

+1

@TomyLobo
Copy link
Contributor

The issue still exists

@TomyLobo
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants