[pve-devel] applied: [PATCH installer v2] post-hook: add `$hook` field describing document schema version
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Nov 12 16:54:15 CET 2024
Am 12.11.24 um 15:53 schrieb Christoph Heiss:
> This adds a metadata-field `$hook` containing a single key `version`
> (for now) to the post-hook json, indicating which schema version (and
> thus structure) this document uses.
>
> In the resulting JSON, this will look like this:
> {
> "$hook": {
> "version": "1.0"
> },
> "debian-version": ..,
> ..
> }
>
> The field follows the format "<major>.<minor>" and applies semantic
> versioning meaning for both the major and minor number. A patch version
> is left out here, as it doesn't make much sense in this context.
>
> This was suggested by Thomas when originally introducing the post-hook
> functionality in [0].
>
> [0] https://lore.proxmox.com/pve-devel/00019f8d-e4f2-420e-892a-b89e8b886748@proxmox.com/
>
> Suggested-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
> Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
> ---
> v1: https://lore.proxmox.com/pve-devel/20241112131815.670475-2-c.heiss@proxmox.com/
>
> Changes v1 -> v2:
> * introduced `$hook` top-level field, nesting `version` under it
>
> proxmox-post-hook/src/main.rs | 31 +++++++++++++++++++++++++++++++
> 1 file changed, 31 insertions(+)
>
>
applied, thanks!
More information about the pve-devel
mailing list