This project provides a Gemini CLI extension that helps someone work on GitOps workflows. It covers key tools, operational commands, and troubleshooting steps for popular GitOps tools Config Sync (GCP), ArgoCD, and FluxCD.
- Generating a bugreport
- Initializing a repository using the nomoscommand
- Hydrating a repository using nomoscommand.
- Migration of the clusters and repositories.
- Getting the status of GitOps pipelines that use Config Sync.
- Ability to vet the current configuration.
- Ability to utilize gcloudto manage the Config Sync instances.
Here is a side by side test of Gemini CLI operating with this extension and without. You can see that when the extension is present LLM is more successful at issuing the right commands to upgrade Config Sync clusters.
Upgrade when the extension is installed:

Same prompt without the extension installed

To install and use this extension locally with gemini-cli, follow these steps:
- Clone this repository (if not already done):
git clone https://github.com/mikebz/gitops-extension.git 
- Link the extension locally using Gemini CLI:
Replacegemini extension link /path/to/gitops-extension /path/to/gitops-extensionwith the actual path to your extension file.
- Verify the extension is linked:
gemini extension list 
- For more details, see the official Gemini CLI Extension Guide.
- kubectl: Command-line tool for managing Kubernetes resources
- kustomize: Customization of Kubernetes YAML manifests
- Config Sync (GCP): Native GitOps for Google Kubernetes Engine
- ArgoCD: Declarative GitOps continuous delivery for Kubernetes
- FluxCD: GitOps operator for Kubernetes with automation and reconciliation
See gitops.md for detailed operational commands, including:
- Installing and configuring Config Sync
- Upgrading and checking versions
- Troubleshooting common issues
- Managing deployments with ArgoCD and FluxCD
- Store all Kubernetes manifests in Git
- Use overlays for environment separation
- Automate deployments and monitor cluster health
- Protect main branches and require PR reviews
This project is licensed under the MIT License - see the LICENSE file for details.
For more details, see the context files in this repository or reach out to the project owner.