chore: use single string docker labels

This commit is contained in:
Aarnav Tale
2025-05-04 15:24:00 -04:00
parent 0808299369
commit b1da29b2fb
6 changed files with 85 additions and 61 deletions
+1 -6
View File
@@ -46,11 +46,6 @@ const headscaleConfig = type({
dns_records_path: 'string?',
}).onDeepUndeclaredKey('reject');
const containerLabel = type({
name: 'string',
value: 'string',
}).optional();
const agentConfig = type({
enabled: stringToBool.default(false),
host_name: 'string = "headplane-agent"',
@@ -64,8 +59,8 @@ const agentConfig = type({
const dockerConfig = type({
enabled: stringToBool,
container_name: 'string = ""',
container_label: 'string = "me.tale.headplane.target=headscale"',
socket: 'string = "unix:///var/run/docker.sock"',
container_label: containerLabel,
});
const kubernetesConfig = type({