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/files/kube.yaml | 9 ++++++--- bundles/golink/files/snapshot.json | 5 +++++ 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 bundles/golink/files/snapshot.json (limited to 'bundles/golink/files') diff --git a/bundles/golink/files/kube.yaml b/bundles/golink/files/kube.yaml index 8ab2789..64b1614 100644 --- a/bundles/golink/files/kube.yaml +++ b/bundles/golink/files/kube.yaml @@ -5,6 +5,7 @@ metadata: labels: traefik.enable: false spec: + imagePullPolicy: Always restartPolicy: Never dnsPolicy: Default securityContext: @@ -13,6 +14,11 @@ spec: containers: - name: golink image: ghcr.io/tailscale/golink:main + args: + - --sqlitedb=/home/nonroot/golink.db + - --snapshot=/home/nonroot/snapshot.json + - --https=true + - --readonly=true volumeMounts: - name: golink-data mountPath: /home/nonroot @@ -20,9 +26,6 @@ spec: limits: cpu: 20m memory: 100Mi - requests: - cpu: 10m - memory: 50Mi volumes: - name: golink-data hostPath: diff --git a/bundles/golink/files/snapshot.json b/bundles/golink/files/snapshot.json new file mode 100644 index 0000000..b6757c6 --- /dev/null +++ b/bundles/golink/files/snapshot.json @@ -0,0 +1,5 @@ +## vim: ft=python +<%! from time import strftime as time %> +% for short, long in links.items(): +{"Short":"${short}","Long":"${long}","Owner":"robertgzr@github","Created":"${"%Y-%m-%dT%H:%M:%SZ" | time}","LastEdit":"${"%Y-%m-%dT%H:%M:%SZ" | time}"} +% endfor -- cgit 1.4.1