You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Parameterized git-url and namespaces for user-specific deployments
- User-prefixed resource naming for complete isolation
- Auto-detect users from GitHub repository owners
- Add deployment examples and documentation
- Support multiple developers on single cluster with namespace isolation
The pipeline supports multiple users deploying to isolated namespaces. Each user gets their own:
343
+
-**Namespace**: `ci-analysis-<username>`
344
+
-**Resources**: Prefixed with username (e.g., `alice-ollama`, `bob-ci-analysis-agent`)
345
+
-**Routes**: Individual URLs for each deployment
346
+
-**Storage**: Isolated persistent volumes
347
+
348
+
### Automated Deployment:
349
+
The pipeline supports GitHub webhooks for automatic deployment on code pushes from any repository. The webhook endpoint automatically creates user-specific deployments based on the repository owner.
350
+
351
+
The pipeline is production-ready and includes comprehensive error handling, security best practices, and detailed documentation. Perfect for development teams working on the same codebase with different features or environments.
This directory contains a comprehensive Tekton pipeline for building and deploying the CI Analysis Agent with Ollama on OpenShift, designed for **multiple users** on a single cluster.
4
+
5
+
## 🎯 Multi-User Pipeline Features
6
+
7
+
### **Key Changes Made:**
8
+
1.**Parameterized git-url** - Now accepts any GitHub repository
9
+
2.**Dynamic namespaces** - Each user deploys to `ci-analysis-<username>`
10
+
3.**Resource prefixing** - All resources are prefixed with user identifier
11
+
4.**Centralized pipeline** - Single pipeline definition supports all users
12
+
5.**Automated user detection** - GitHub webhooks automatically create user-specific deployments
13
+
14
+
### **Multi-User Architecture:**
15
+
-**Shared Resources**: Pipeline, tasks, RBAC, and secrets in `tekton-pipelines` namespace
16
+
-**User Isolation**: Each user gets their own namespace with prefixed resources
17
+
-**Automatic Deployment**: GitHub webhooks create deployments based on repository owner
18
+
19
+
### **Updated Files:**
20
+
- ✅ **`pipeline.yaml`** - Added `target-namespace` and `user-prefix` parameters
21
+
- ✅ **`tasks.yaml`** - Updated all tasks to use dynamic namespaces and prefixes
22
+
- ✅ **`rbac.yaml`** - Moved to `tekton-pipelines` namespace for cluster-wide access
23
+
- ✅ **`triggers.yaml`** - Auto-generates user deployments from GitHub webhooks
24
+
- ✅ **`pipeline-run.yaml`** - Example deployment for "dev" user
25
+
- ✅ **`user-examples.yaml`** - Multiple user deployment examples with script
26
+
- ✅ **`deploy-pipeline.sh`** - Updated for multi-user setup
0 commit comments