|
| 1 | +{ |
| 2 | + "type": "object", |
| 3 | + "required": ["analysisData"], |
| 4 | + "properties": { |
| 5 | + "analysisData": { |
| 6 | + "type": "array", |
| 7 | + "description": "Typed components describing upgrade readiness. Must include exactly one ota_readiness_summary. Include one ota_finding per blocker or warning. Include one ota_olm_operator_status if OLM operators are present.", |
| 8 | + "minItems": 1, |
| 9 | + "items": { |
| 10 | + "oneOf": [ |
| 11 | + { |
| 12 | + "type": "object", |
| 13 | + "description": "Overall upgrade readiness summary with per-check results.", |
| 14 | + "properties": { |
| 15 | + "type": { "type": "string", "const": "ota_readiness_summary" }, |
| 16 | + "decision": { |
| 17 | + "type": "string", |
| 18 | + "enum": ["recommend", "caution", "block", "escalate"], |
| 19 | + "description": "recommend=all clear, caution=warnings only, block=blockers found, escalate=insufficient data" |
| 20 | + }, |
| 21 | + "checks": { |
| 22 | + "type": "array", |
| 23 | + "description": "One entry per readiness check from the input JSON.", |
| 24 | + "items": { |
| 25 | + "type": "object", |
| 26 | + "properties": { |
| 27 | + "name": { "type": "string", "description": "Check name, e.g. Cluster Conditions, Operator Health" }, |
| 28 | + "status": { "type": "string", "enum": ["pass", "warn", "fail", "error"] }, |
| 29 | + "detail": { "type": "string", "description": "One-line summary" } |
| 30 | + }, |
| 31 | + "required": ["name", "status"] |
| 32 | + } |
| 33 | + } |
| 34 | + }, |
| 35 | + "required": ["type", "decision", "checks"] |
| 36 | + }, |
| 37 | + { |
| 38 | + "type": "object", |
| 39 | + "description": "A specific blocker, warning, or informational finding.", |
| 40 | + "properties": { |
| 41 | + "type": { "type": "string", "const": "ota_finding" }, |
| 42 | + "severity": { "type": "string", "enum": ["blocker", "warning", "info"] }, |
| 43 | + "check": { "type": "string", "description": "Which readiness check surfaced this" }, |
| 44 | + "detail": { "type": "string", "description": "Description for a cluster administrator" }, |
| 45 | + "affectedResources": { "type": "array", "items": { "type": "string" } }, |
| 46 | + "prerequisite": { "type": "string", "description": "Action to resolve before upgrading" }, |
| 47 | + "verifyCommand": { "type": "string", "description": "Command to verify the finding is resolved" } |
| 48 | + }, |
| 49 | + "required": ["type", "severity", "check", "detail"] |
| 50 | + }, |
| 51 | + { |
| 52 | + "type": "object", |
| 53 | + "description": "Per-operator OLM lifecycle status.", |
| 54 | + "properties": { |
| 55 | + "type": { "type": "string", "const": "ota_olm_operator_status" }, |
| 56 | + "operators": { |
| 57 | + "type": "array", |
| 58 | + "items": { |
| 59 | + "type": "object", |
| 60 | + "properties": { |
| 61 | + "name": { "type": "string" }, |
| 62 | + "namespace": { "type": "string" }, |
| 63 | + "displayName": { "type": "string" }, |
| 64 | + "installedVersion": { "type": "string" }, |
| 65 | + "channel": { "type": "string" }, |
| 66 | + "source": { "type": "string" }, |
| 67 | + "installPlanApproval": { "type": "string", "enum": ["Automatic", "Manual"] }, |
| 68 | + "pendingUpgrade": { "type": "boolean" }, |
| 69 | + "pendingVersion": { "type": "string" }, |
| 70 | + "compatibleWithTarget": { "type": "boolean" }, |
| 71 | + "availableChannels": { "type": "array", "items": { "type": "string" } }, |
| 72 | + "ocpCompat": { |
| 73 | + "type": "object", |
| 74 | + "properties": { "min": { "type": "string" }, "max": { "type": "string" } } |
| 75 | + }, |
| 76 | + "lifecycle": { |
| 77 | + "type": "object", |
| 78 | + "properties": { |
| 79 | + "productName": { "type": "string" }, |
| 80 | + "supportPhase": { "type": "string", "enum": ["Full Support", "Maintenance Support", "End of life"] }, |
| 81 | + "ocpVersions": { "type": "string" }, |
| 82 | + "maintenanceEnds": { "type": "string" } |
| 83 | + } |
| 84 | + } |
| 85 | + }, |
| 86 | + "required": ["name", "namespace"] |
| 87 | + } |
| 88 | + }, |
| 89 | + "summary": { |
| 90 | + "type": "object", |
| 91 | + "properties": { |
| 92 | + "totalOperators": { "type": "integer" }, |
| 93 | + "pendingUpgrades": { "type": "integer" }, |
| 94 | + "manualApproval": { "type": "integer" }, |
| 95 | + "incompatibleWithTarget": { "type": "integer" } |
| 96 | + } |
| 97 | + } |
| 98 | + }, |
| 99 | + "required": ["type", "operators", "summary"] |
| 100 | + } |
| 101 | + ] |
| 102 | + } |
| 103 | + } |
| 104 | + } |
| 105 | +} |
0 commit comments