Commit 0ad0229
committed
Fix Kubernetes CRD field structures for OIDC and authz config
Update all MCPServer YAML examples to use correct CRD field structure:
1. External IdP authentication:
- Change spec.auth.oidc → spec.oidcConfig
- Add required type: inline field
- Nest configuration under inline: key
2. Kubernetes service account authentication:
- Change spec.auth.oidc → spec.oidcConfig
- Use type: kubernetes instead of inline
- Replace clientId with serviceAccount and namespace fields
3. Authorization configuration:
- Change spec.auth.authorization → spec.authzConfig
- Add required type: configMap field
- Update field names: configMapName → name, configMapKey → key
These changes align with the actual ToolHive CRD definitions in
toolhive/cmd/thv-operator/api/v1alpha1/mcpserver_types.go1 parent efde704 commit 0ad0229
1 file changed
+23
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
164 | | - | |
165 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
166 | 170 | | |
167 | | - | |
168 | 171 | | |
169 | 172 | | |
170 | 173 | | |
| |||
277 | 280 | | |
278 | 281 | | |
279 | 282 | | |
280 | | - | |
281 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
282 | 288 | | |
283 | | - | |
284 | 289 | | |
285 | 290 | | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
290 | 297 | | |
291 | 298 | | |
292 | 299 | | |
| |||
0 commit comments