Skip to content

Commit

Permalink
Merge pull request #3 from oamg/upgrade-script
Browse files Browse the repository at this point in the history
Init upgrade script
  • Loading branch information
andywaltlova authored Nov 21, 2023
2 parents d89edef + d6442d0 commit cd95df6
Show file tree
Hide file tree
Showing 18 changed files with 1,123 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,18 @@ You can find official leapp_preupgrade_ansible.yaml for rhc-worker-playbook in p

For rhc-worker-script we have only raw script leapp_preupgrade.py, signed version wrapped in yaml is still in development.

### [WIP] Upgrade
### Upgrade

TBA
**TBD** for rhc-worker-playbook.

For rhc-worker-script we have only raw script leapp_upgrade.py, signed version wrapped in yaml is still in development.

## Local Development & Contributing

### Requirements

* `virtualenv` - to run tests locally
* `python2` - to run tests locally
* `virtualenv` - `versions < 20.22.0` to run tests locally
* `pre-commit` - to run checks before each commit, see hook in [.pre-commit-config.yml](./.pre-commit-config.yaml)
* `make` - to use handy commands

Expand Down
69 changes: 69 additions & 0 deletions schemas/upgrade_schema_1.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"title": "Leapp pre-upgrade script schema",
"description": "Script is expected to set up Leapp and run pre-upgrade analysis. This schema defines the output format that is expected by Red Hat Insights Task UI.",
"type": "object",
"properties": {
"alert": {
"type": "boolean"
},
"error": {
"type": "boolean"
},
"status": {
"$ref": "#/$defs/status_codes"
},
"report": {
"type": "string"
},
"message": {
"type": "string"
},
"report_json": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"properties": {
"entries": {
"type": "object"
},
"tasks_format_version": {
"type": "string"
},
"tasks_format_id": {
"type": "string"
}
},
"required": [
"entries",
"tasks_format_version",
"tasks_format_id"
]
}
]
}
},
"required": [
"alert",
"error",
"status",
"message",
"report",
"report_json"
],
"additionalProperties": false,
"$defs": {
"status_codes": {
"description": "The severity of the results and messages",
"type": "string",
"enum": [
"SUCCESS",
"INFO",
"WARNING",
"ERROR"
]
}
}
}
Loading

0 comments on commit cd95df6

Please sign in to comment.