argoproj-labs / argocd-autopilot

Argo-CD Autopilot

Home Page:https://argocd-autopilot.readthedocs.io/en/stable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

--insecure doesn't seem to work correctly

joelcomp1 opened this issue · comments

I want to run ArgoCD behind a ingress so --insecure seemed like exactly what I wanted but I want run repo bootstrap with these flags:

argocd-autopilot repo bootstrap --insecure --provider gitlab --git-user --repo

I get this error:

FATAL failed to build bootstrap manifests: failed running kustomization: accumulating resources: accumulation err='accumulating resources from 'manifests/insecure': evalsymlink failure on '/home//auto-pilot1445738794/manifests/insecure' : lstat /home//auto-pilot1445738794/manifests: no such file or directory': evalsymlink failure on '/home//auto-pilot1445738794/manifests/insecure' : lstat /home//auto-pilot1445738794/manifests: no such file or directory

if I don't use --insecure it works fine just deploys argocd w/HTTPS which I don't want.

it seems as a workaround you can provide:

--app github.com/argoproj-labs/argocd-autopilot/manifests/insecure?ref=v0.4.2

then it works, must be something wrong in the binary?

does not work for me:

no matches found: github.com/argoproj-labs/argocd-autopilot/manifests/insecure?ref=v0.4.2

Just wondered if there is any traction on this?

also wondering if anyone has a proper way to do this.

rogue@TUMBLER:~/roguelabTNG/argo$ argocd-autopilot repo bootstrap --insecure
FATAL failed to build bootstrap manifests: failed running kustomization: accumulating resources: accumulation err='accumulating resources from 'manifests/insecure': evalsymlink failure on '/home/rogue/roguelabTNG/argo/auto-pilot828369425/manifests/insecure' : lstat /home/rogue/roguelabTNG/argo/auto-pilot828369425/manifests: no such file or directory': evalsymlink failure on '/home/rogue/roguelabTNG/argo/auto-pilot828369425/manifests/insecure' : lstat /home/rogue/roguelabTNG/argo/auto-pilot828369425/manifests: no such file or directory

github.com/argoproj-labs/argocd-autopilot/manifests/insecure?ref=v0.4.2

put that in quotes and it might help.

I eventually got mine working by kustomizing the cm-params but I had to redo my lab so I thought I'd try to get it working this way.

argocd-autopilot repo bootstrap --insecure --app "github.com/argoproj-labs/argocd-autopilot/manifests/insecure?ref=v0.4.6"

Seemed to work while we wait for kustomize to fix their evalsymlink and argo adopts the fix.

obviously use the version you are most comfortable with... I chose 4.6 cause I was messing about.

I would just update argocd-cmd-params-cm by editing the kustomization under /bootstrap/argo-cd/kustomization.yaml with a merge for the parameter server.insecure: "true"

Something like this:

apiVersion: kustomize.config.k8s.io/v1beta1
configMapGenerator:
- name: argocd-cmd-params-cm
  behavior: merge
  literals:
  - |
    server.insecure="true"