Bootstrap repository using existing Argo CD installation
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.
Hey @alexmt, Thanks a lot for the proposal! That is very interesting in my opinion. @noam-codefresh @itai-codefresh WDYT?
indeed a very good idea, we will try to prioritize as possible :)
Great idea +1
Any news here?