How about gitops cli tool ? #78
Replies: 0 comments 11 replies
-
@scottrigby Scott Rigby any thoughts on this? Tell me in case if it is irrelevant and out of scope ? |
Beta Was this translation helpful? Give feedback.
-
Isn't the whole point of git init
git branch staging
gh pr create #Github CLI
git reset --soft HEAD~1 ? |
Beta Was this translation helpful? Give feedback.
-
I'd suggest re-opening this as a discussion topic now that #36 is set up. I'd convert it for you, but for the moment we can't due to community/community#2924 (comment). |
Beta Was this translation helpful? Give feedback.
-
I agree with @ams0 that "pull request driven operations" really seem to be the theme around gitops. Still i can imagine that imperative CLI tools have its place when carefully crafting/shaping pull requests. Similar to tooling around GitFlow you want to automate most (boring) tasks such as templating a (common) change, testing, managing potential dependencies between PRs etc. WDYT? |
Beta Was this translation helpful? Give feedback.
-
There is some new thinking on this, and it was discussed in the most recent GitOps WG meeting. There is some talk about this as a shared CLI command, where support for specific tools would be added through plugins. The idea is this would live in the OpenGitOps project. See #77 This is not an answer yet, just a note that there is some movement here, and will probably move to https://github.com/open-gitops/project/discussions. Keeping this open until it's started there. |
Beta Was this translation helpful? Give feedback.
-
@vijaySamanuri wrote:
While I was reviewing: Video referenced https://github.com/podtato-head/podtato-head/ for the purpose of 📨🚚 CNCF App Delivery SIG Demo. From https://github.com/podtato-head/podtato-head/blob/main/README.md
There is an entry: Perhaps From your perspective, would both WDYT? Thank you! |
Beta Was this translation helpful? Give feedback.
-
We have several environment stages at our place but
gitops
doesn't cover the promotion part among these stages.As a workaround we adopted "branch per environment" strategy and rotating the PR to the other environment but these all are manual steps and when we script this to CI system its all non standard i.e different CI system requires different way of doing it for example github actions requires different way of doing it, gitlab plugin different way.
I think it is beneficial to have a standard cli tool something like
gitops
which deals with all the manual steps during the gitops deployment process. This tool just interacts with the underlying git tool and wraps the gitops specific git commands.for example:
gitops init hld --for-app=guestbook
would initiate the HLD repository if not presentgitops env add stage
would create astage
branch in HLD repositorygitops raisePR prod --from=stage
raises a PR fromstage
branch toprod
branchgitops rollback prod
etc
Beta Was this translation helpful? Give feedback.
All reactions