From 2d69761436a384a69889120258616dd644c86e7b Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 23 Feb 2026 14:28:01 +0100 Subject: golink: generate snapshot from metadata MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- bundles/golink/items.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'bundles/golink/items.py') diff --git a/bundles/golink/items.py b/bundles/golink/items.py index 8f79a22..6a87f1f 100644 --- a/bundles/golink/items.py +++ b/bundles/golink/items.py @@ -1,7 +1,12 @@ files = { "/etc/deployments/golink/kube.yaml": { - "content_type": "text", - "source": "kube.yaml", + "triggers": {"svc_s6rc:golink:restart"}, + }, + "/var/lib/golink/snapshot.json": { + "content_type": "mako", + "context": { + "links": node.metadata.get("go", {}), + }, "triggers": {"svc_s6rc:golink:restart"}, }, } -- cgit 1.4.1