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

Question: How to handle gitops repo changes outside of base manifests from app repo? #29

Open
markphillips100 opened this issue Sep 16, 2024 · 0 comments

Comments

@markphillips100
Copy link

I'm attempting to implement my gitops deployment pipeline using this repo as an example. I'm considering what should occur process wise when an ops person might need to update some variable of an environment. They don't interact with the app repo, only the gitops repo I would assume, so fall outside of the app's CI/CD pipeline flow. This presumable then requires CI/CD for the gitops repo itself? But if so, then how does that tie in with the existing flow?

  1. Dev pushes changes to app repo. CI runs and completes merge to main.

  2. CD triggers, manifests generated, branch created, PR for branch created.

  3. Some time may pass...

  4. In the meantime, an Ops person pushes changes to gitops repo (via a PR for approval) to change say the component variant overlay "non-prod" replica count, a variant that may be consumed by several environments. I'm assuming for now that this must use some gitops PR pipeline to generate all manifests for all environment/stage variations, as the single change may affect more than one generated file.

  5. The ops change PR gets approved and changes merged to gitops main. Gitops operator starts deployment. There's no CD flow here though to integrate some deployment state back to run tests etc.

There appears to be some friction with this, or is the assumption that ALL changes to the gitops repo only occur via the app's CD pipeline? And if so, that means ALL stage/environment variations must be defined with the app repo, correct?

I appreciate any help discussing this.

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