-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #667 from NethServer/feat-6956-3
Add image core and app version constraint checks Refs NethServer/dev#6956
- Loading branch information
Showing
9 changed files
with
178 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
core/imageroot/var/lib/nethserver/cluster/actions/update-modules/validate-input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "update-modules input", | ||
"$id": "http://schema.nethserver.org/cluster/update-modules-input.json", | ||
"description": "Input schema of the update-modules action. All matching modules are updated to their own valid latest version. The limits min-core and min-from are considered. If no option is given, all cluster app instances are updated.", | ||
"examples": [ | ||
{ | ||
"instances": [ | ||
"mymodule2", | ||
"mymodule3" | ||
] | ||
}, | ||
{ | ||
"modules": [ | ||
"mymodule" | ||
] | ||
} | ||
], | ||
"type": "object", | ||
"properties": { | ||
"instances": { | ||
"description": "Limit the update to this list of instances. Only matching instances are updated.", | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"minLength": 2, | ||
"pattern": "^.+[0-9]+$" | ||
} | ||
}, | ||
"modules": { | ||
"description": "Limit the update to this list of modules. Only instances of this module are updated.", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.