argoproj-labs / argocd-autopilot

Argo-CD Autopilot
https://argocd-autopilot.readthedocs.io/en/stable/
Apache License 2.0
912 stars 123 forks source link

Bootstrap repository using existing Argo CD installation #127

Open alexmt opened 3 years ago

alexmt commented 3 years ago

Summary

The autopilot is perfect for new Argo CD users but existing users would benefit from autopilot as well. It is proposed to add the ability to bootstrap the Git repository using an existing Argo CD installation to simplify the onboarding of existing Argo CD users.

Proposal

The existing repo bootstrap should be able to fetch apps from Kubernetes namespace that holds Argo CD installation and update Git repository accordingly.

For example, https://cd.apps.argoproj.io/ manages several apps defined in https://github.com/argoproj/argoproj-deployments. The argocd-autopilot repo bootstrap --repo https://github.com/argoproj/argoproj-deployments --initial-state-namespace=argocd --branch migration should generate a directory structure that holds apps manifests in migration branch.

The --initial-state-namespace flag indicates that command should use the initial stored in argocd namespace. The --branch flag is a branch name where configuration should be stored. This allows to create new directory structure in a different branch and simplify migration.

roi-codefresh commented 3 years ago

Hey @alexmt, Thanks a lot for the proposal! That is very interesting in my opinion. @noam-codefresh @itai-codefresh WDYT?

itai-codefresh commented 3 years ago

indeed a very good idea, we will try to prioritize as possible :)

todaywasawesome commented 3 years ago

Great idea +1

Jaykob commented 1 year ago

Any news here?

quanlk2511 commented 1 week ago

Any progress on this, guys? Really fine idea.

todaywasawesome commented 1 week ago

I think it would be quite complicated to do that. You would need to support the installation method and generate the values or kustomizations etc.

PRs are open though 😁