| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 1 | input: { |
| 2 | username: string |
| 3 | preAuthKey: { |
| 4 | enabled: bool | *false |
| 5 | } |
| 6 | } |
| 7 | |
| Giorgi Lekveishvili | 186eae5 | 2024-02-15 14:21:41 +0400 | [diff] [blame] | 8 | name: "headscale-user" |
| Giorgi Lekveishvili | 08af67a | 2024-01-18 08:53:05 +0400 | [diff] [blame] | 9 | namespace: "app-headscale" |
| 10 | |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 11 | charts: { |
| 12 | headscaleUser: { |
| gio | f884341 | 2024-05-22 16:38:05 +0400 | [diff] [blame] | 13 | kind: "GitRepository" |
| 14 | address: "https://github.com/giolekva/pcloud.git" |
| 15 | branch: "main" |
| 16 | path: "charts/headscale-user" |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 17 | } |
| 18 | } |
| 19 | |
| 20 | helm: { |
| gio | 3af4394 | 2024-04-16 08:13:50 +0400 | [diff] [blame] | 21 | "headscale-user-\(input.username)": { |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 22 | 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 | } |