blob: 036d0a3ddf32ea6cb4795b5d969fdb3331ebdce4 [file] [log] [blame]
gio7fbd4ad2024-08-27 10:06:39 +04001input: {
2 username: string
3 preAuthKey: {
4 enabled: bool | *false
5 }
6}
7
8name: "headscale-user"
9namespace: "app-headscale"
10
11out: {
12 charts: {
13 headscaleUser: {
14 kind: "GitRepository"
15 address: "https://code.v1.dodo.cloud/helm-charts"
16 branch: "main"
17 path: "charts/headscale-user"
18 }
19 }
20
21 helm: {
22 "headscale-user-\(input.username)": {
23 chart: charts.headscaleUser
24 values: {
25 username: input.username
26 headscaleApiAddress: "http://headscale-api.\(global.namespacePrefix)app-headscale.svc.cluster.local"
27 preAuthKey: {
28 enabled: input.preAuthKey.enabled
29 secretName: "\(input.username)-headscale-preauthkey"
30 }
31 }
32 }
33 }
34}