From 948361bb4d4f4798ed4ce0afb4fe0663e9952165 Mon Sep 17 00:00:00 2001 From: ManInDark <61268856+ManInDark@users.noreply.github.com> Date: Sat, 31 Jan 2026 18:32:54 +0100 Subject: [PATCH] fix: discoverable? --- schema/pkl/proxmox.pkl | 18 +++++++++++++++++- types.go | 2 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/schema/pkl/proxmox.pkl b/schema/pkl/proxmox.pkl index f782ba1..73c2ded 100644 --- a/schema/pkl/proxmox.pkl +++ b/schema/pkl/proxmox.pkl @@ -2,9 +2,22 @@ module proxmox import "@formae/formae.pkl" +open class Config { + hidden fixed type: String = "SFTP" + + url: String + + node: String + + fixed Type: String = type + fixed Url: String = url + fixed Node: String = node +} + @formae.ResourceHint { type = "PROXMOX::Service::LXC" identifier = "$.vmid" + discoverable = true } class LXC extends formae.Resource { fixed hidden type: String = "PROXMOX::Service::LXC" @@ -12,7 +25,10 @@ class LXC extends formae.Resource { @formae.FieldHint { createOnly = true } vmid: String - @formae.FieldHint { createOnly = true } + @formae.FieldHint { + createOnly = true + writeOnly = true + } ostemplate: String @formae.FieldHint {} diff --git a/types.go b/types.go index 367900b..eb7d291 100644 --- a/types.go +++ b/types.go @@ -10,7 +10,7 @@ type TargetConfig struct { type LXCProperties struct { VMID string `json:"vmid"` Hostname string `json:"hostname"` - Description string `json:"description"` + Description string `json:"description,omitempty"` OSTemplate string `json:"ostemplate"` }