Examples¶
This section provides practical examples of using the Git Change Operator in various scenarios. Each example includes complete YAML configurations and explanations.
Basic Examples¶
Basic GitCommit¶
- Creating your first GitCommit resource
- Basic authentication setup
- Simple file creation
GitCommit with Resource References¶
- Resource reference strategies
- Dynamic file generation
- Multiple resource references
PullRequest Creation¶
- GitHub integration setup
- Branch management
- Pull request metadata
Advanced Scenarios¶
Advanced Configurations¶
- Mixed resource references
- Complex file structures
- Error handling strategies
Corporate Environment Setup¶
- Proxy configuration
- Certificate management
- Security best practices
Quick Start¶
If you're new to the Git Change Operator, start with the Basic GitCommit example and work your way through the more complex scenarios.
Example Repository Structure¶
All examples assume a typical repository structure:
your-repo/
├── manifests/ # Kubernetes manifests
│ ├── deployments/
│ ├── services/
│ └── configmaps/
├── docs/ # Documentation
└── README.md
Prerequisites¶
Before running these examples, ensure you have:
- Kubernetes cluster with the Git Change Operator installed
- Git repository with appropriate permissions
- Authentication secrets properly configured
- kubectl access to your cluster
See the Installation Guide for setup instructions.