Support having app directory in different repo #70
Replies: 1 comment
-
A different suggestion I thought about - instead of having Autopilot manage two repos (or more) - add an option to |
Beta Was this translation helpful? Give feedback.
-
We think that having the basic GitOps infrastructure in the GitOps repo (the one with the
bootstrap
directory, and theargo-cd
kustomization file), and the actuals apps in a different repo might be a useful use-case for may users.Why:
Splitting the responsibility between the two repos (which applications to apply to the cluster, vs. what each application actually contain) will make it easier to handle security. A different set of permissions will be required to just edit a manifest, or add a patch to some app, vs. the permissions required to create a new project, deploy to a new cluster and actually adding a new application.
Suggested structure:
Required changes
The
application create
command will have another optional flag. Maybe--target-repo
? If the user uses it, the code will clone both repos (Gitops + target), commit theconfig.json
at the correct location in the Gitops repo, and the kustomizationoverlay/<project_name>
andbase
in the matching location in the target repo. In case the user creates a Directory Application, the code will just make sure the correct directory exist in the target repo.Does it all make sense? Is it a useful use case to have in Autopilot? Are there any more use-cases in that area that we might also want to support, or maybe we are missing anything?
Beta Was this translation helpful? Give feedback.
All reactions