blob: 6ba12cb980f42ca8f0d4c9d39177dfa8c1f63976 [file] [log] [blame]
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +04001input: {
2 username: string
3 preAuthKey: {
4 enabled: bool | *false
5 }
6}
7
Giorgi Lekveishvili186eae52024-02-15 14:21:41 +04008name: "headscale-user"
Giorgi Lekveishvili08af67a2024-01-18 08:53:05 +04009namespace: "app-headscale"
10
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040011charts: {
12 headscaleUser: {
giof8843412024-05-22 16:38:05 +040013 kind: "GitRepository"
14 address: "https://github.com/giolekva/pcloud.git"
15 branch: "main"
16 path: "charts/headscale-user"
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040017 }
18}
19
20helm: {
gio3af43942024-04-16 08:13:50 +040021 "headscale-user-\(input.username)": {
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040022 chart: charts.headscaleUser
23 values: {
24 username: input.username
25 headscaleApiAddress: "http://headscale-api.\(global.namespacePrefix)app-headscale.svc.cluster.local"
26 preAuthKey: {
27 enabled: input.preAuthKey.enabled
28 secretName: "\(input.username)-headscale-preauthkey"
29 }
30 }
31 }
32}