Commit 371e1c5
Fix SSA validation errors: remove nulls and fix test path
1. Add _remove_null_values() to recursively strip null values from
objects before SSA - Kubernetes rejects nulls where objects are
expected in the CRD schema (e.g., spec.security: null → 422 error)
2. Fix test_appdb_reconcile to use correct schema path:
- Wrong: spec.applicationDatabase.logLevel
- Correct: spec.applicationDatabase.agent.logLevel
This was a latent bug exposed by SSA's strict schema validation.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 4c63bd5 commit 371e1c5
File tree
2 files changed
+18
-1
lines changed- docker/mongodb-kubernetes-tests
- kubeobject
- tests/opsmanager
2 files changed
+18
-1
lines changedLines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
12 | 24 | | |
13 | 25 | | |
14 | 26 | | |
15 | 27 | | |
16 | 28 | | |
17 | 29 | | |
18 | 30 | | |
| 31 | + | |
| 32 | + | |
19 | 33 | | |
20 | 34 | | |
21 | 35 | | |
| |||
35 | 49 | | |
36 | 50 | | |
37 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
38 | 55 | | |
39 | 56 | | |
40 | 57 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
| 384 | + | |
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| |||
0 commit comments