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

Cannot bootstrap a repo with --insecure flag #545

Open
tobiwanobi opened this issue Jan 4, 2024 · 2 comments
Open

Cannot bootstrap a repo with --insecure flag #545

tobiwanobi opened this issue Jan 4, 2024 · 2 comments

Comments

@tobiwanobi
Copy link

When I try to bootstrap a repo with the --insecure flag I get an error message:
FATAL failed to build bootstrap manifests: failed running kustomization: accumulating resources: accumulation err='accumulating resources from 'manifests/insecure': evalsymlink failure on '/usr/local/bin/auto-pilot3429112549/manifests/insecure' : lstat /usr/local/bin/auto-pilot3429112549/manifests: no such file or directory': evalsymlink failure on '/usr/local/bin/auto-pilot3429112549/manifests/insecure' : lstat /usr/local/bin/auto-pilot3429112549/manifests: no such file or directory

But without the insecure flag it works just fine.

I tried this on Ubuntu 22.04 with downloading the latest release v0.4.17 and also an Windows with downloading the latest version with chocolatey v0.2.28 and both did not work with the same error message.

@tobiwanobi
Copy link
Author

Works with the workaroud described in #351 with the following command:
argocd-autopilot repo bootstrap --insecure --app "github.com/argoproj-labs/argocd-autopilot/manifests/insecure?ref=v0.4.17"

@tobiwanobi
Copy link
Author

Another quick note, with the above workaround (I am not sure if its because of that) the autopilot-bootstrap Application has not been created so I wrote my own Application and deployed it manually to the cluster and now it seems to work properly. Not sure how this one looks when the autopilot creates it, but at least its working.
`
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: argocd-autopilot
app.kubernetes.io/name: autopilot-bootstrap
name: autopilot-bootstrap
namespace: argocd
spec:
destination:
namespace: argocd
server: https://kubernetes.default.svc
ignoreDifferences:

  • group: argoproj.io
    jsonPointers:
    • /status
      kind: Application
      project: default
      source:
      path: bootstrap
      repoURL:
      syncPolicy:
      automated:
      allowEmpty: true
      prune: true
      selfHeal: true
      syncOptions:
    • allowEmpty=true
      status:
      health: {}
      summary: {}
      sync:
      comparedTo:
      destination: {}
      source:
      repoURL: ""
      status: ""
      `

I also created my own kustomization.yaml to pin the v2.9.0 of ArgoCD, this could also be more comfortable for users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant