Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions pattern.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@
"description": "URL or path to a logo image for the pattern",
"format": "uri"
},
"ocp_versions": {
"$ref": "#/$defs/ocpVersions"
},
"variants": {
"type": "array",
"description": "Deployment variants for the pattern",
Expand Down Expand Up @@ -219,6 +222,42 @@
"description": "Human-readable description of the variant"
}
}
},
"ocpVersions": {
"type": "object",
"description": "OCP version compatibility requirements checked by the validate_ocp_version role during installation",
"additionalProperties": false,
"properties": {
"minimum": {
"type": "string",
"description": "Minimum supported OCP version (e.g. 4.20). Versions below this trigger a warning.",
"pattern": "^[0-9]+\\.[0-9]+$"
},
"unsupported": {
"type": "array",
"description": "Explicitly unsupported OCP versions that cause a hard fail during installation",
"items": {
"$ref": "#/$defs/unsupportedOcpVersion"
}
}
}
},
"unsupportedOcpVersion": {
"type": "object",
"description": "An OCP version that is explicitly not supported",
"required": ["version", "reason"],
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
"description": "OCP version string (e.g. 4.23)",
"pattern": "^[0-9]+\\.[0-9]+$"
},
"reason": {
"type": "string",
"description": "Human-readable explanation of why this version is unsupported"
}
}
}
}
}