documents icon indicating copy to clipboard operation
documents copied to clipboard

Codified updates to git

Open ellieayla opened this issue 5 years ago • 3 comments

Many people are looking for GitOps to replace some imperative existing model, like a CI job running kubectl set image .... This often results in people independently authoring janky shell scripts that end up needing to...

  1. decide something about the world, like some new image being ready for use in production
  2. enough resource type awareness to edit some files - Possibly flimsy, such as with sed / envsubst
  3. make a commit
  4. push it somewhere and
  • make a PR (vendor-specific api) for something else to review or automerge
  • deal with merge conflicts - possibly rebase or discard & retry

FluxCD v1 implemented a stack of code for detecting & bumping image versions, but never dealt with the generalized case directed by some other tooling. Other bits in the GitOps toolkit may. An opinionated way to implement a common flow should be documented. And ideally not require the end-administrator to reimplement common logic themselves.

ellieayla avatar Nov 23 '20 18:11 ellieayla

We'll want to be careful document the best practice and not necessarily pick a winning tool with it.

todaywasawesome avatar Jan 08 '21 18:01 todaywasawesome

Agree with @todaywasawesome. The scope of this WG is concerned with patterns, definitions, criteria, and practices. Tools should work to implement these, not the other way around.

@alanjcastonguay that said, this is a commonly requested process for GitOps, and I'd love to see tool-agnostic use cases and patterns for this more fleshed out in a working doc.

scottrigby avatar Jan 20 '21 20:01 scottrigby

@ellieayla Revisting this – now that we're farther along with OpenGitOps, this could be a good "blueprint" for OpenGitOps

Also perhaps could make a good Flux doc or blog post – if you're interested in that side of things too, please ping me or others in the CNCF #flux-contributors channel 😄 ✨

scottrigby avatar Jan 17 '22 23:01 scottrigby