Commit 6b66a6c
feat(chat): configure chat-api Application for 4 environments (#5)
* feat(chat): add base ArgoCD Application template
Add base/application.yaml with:
- ArgoCD Application for chat-api
- Image Updater annotations for automatic semver updates
- Helm source pointing to app-poly-gitops-helm
- Automated sync policy with selfHeal and prune
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* feat(chat): update base kustomization to include application
Add application.yaml to base kustomization resources.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* feat(chat): add dev overlay patches for Application
Add Kustomize patches for dev environment:
- env: dev label
- Inline Helm values with dev-specific configuration
- 2 replicas, 1Gi memory, chat-dev.syncjob.ru host
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* feat(chat): add tst, stg, prd overlay patches
Configure environment-specific patches for all environments:
- tst: 1 replica, 512Mi memory, minimal resources
- stg: 2 replicas, 1Gi memory, pre-prod config
- prd: 3 replicas, 2Gi memory, production-grade
TODO: Create SealedSecrets for tst, stg, prd
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* fix(clusters): point dev cluster to dev overlay
Fix cluster/dev reference: base -> overlays/dev
This ensures dev cluster gets dev-specific configuration
including secrets and environment patches.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* fix(policies): improve OPA policies with better exceptions
Changes:
- Add cluster-scoped kinds list (Namespace, ClusterRole, etc.)
- Add ArgoCD kinds list (Application, ApplicationSet, AppProject)
- Skip namespace check for cluster-scoped and ArgoCD resources
- Improve error messages with [Kind/Name] prefix
- Make probes check production-only (env=prd label)
- Disable overly strict checks (runAsNonRoot, OTEL, chat-api model)
- Add new policies: labels, SealedSecrets namespace, Ingress TLS, HPA limits
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
---------
Co-authored-by: Claude <[email protected]>1 parent 326ebe6 commit 6b66a6c
File tree
8 files changed
+284
-34
lines changed- clusters/dev
- policies
- tenants/product-team/apps/chat
- base
- overlays
- dev
- prd
- stg
- tst
8 files changed
+284
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
6 | 42 | | |
7 | 43 | | |
8 | 44 | | |
9 | 45 | | |
10 | | - | |
| 46 | + | |
11 | 47 | | |
12 | 48 | | |
13 | 49 | | |
14 | | - | |
| 50 | + | |
15 | 51 | | |
16 | 52 | | |
17 | | - | |
| 53 | + | |
18 | 54 | | |
19 | 55 | | |
20 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
21 | 59 | | |
22 | 60 | | |
| 61 | + | |
23 | 62 | | |
24 | 63 | | |
25 | | - | |
| 64 | + | |
26 | 65 | | |
27 | 66 | | |
28 | 67 | | |
29 | 68 | | |
30 | | - | |
| 69 | + | |
| 70 | + | |
31 | 71 | | |
32 | | - | |
| 72 | + | |
33 | 73 | | |
34 | 74 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
39 | 78 | | |
40 | 79 | | |
41 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
42 | 125 | | |
43 | 126 | | |
44 | | - | |
45 | | - | |
| 127 | + | |
| 128 | + | |
46 | 129 | | |
47 | 130 | | |
48 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
49 | 134 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
55 | 138 | | |
56 | 139 | | |
57 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
58 | 143 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
63 | 148 | | |
64 | 149 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
69 | 157 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
0 commit comments