| 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 | 08af67a | 2024-01-18 08:53:05 +0400 | [diff] [blame] | 8 | namespace: "app-headscale" |
| 9 | |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 10 | images: {} |
| 11 | |
| 12 | charts: { |
| 13 | headscaleUser: { |
| 14 | chart: "charts/headscale-user" |
| 15 | sourceRef: { |
| 16 | kind: "GitRepository" |
| 17 | name: "pcloud" |
| 18 | namespace: global.id |
| 19 | } |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | helm: { |
| 24 | "headscale-user": { |
| 25 | chart: charts.headscaleUser |
| 26 | values: { |
| 27 | username: input.username |
| 28 | headscaleApiAddress: "http://headscale-api.\(global.namespacePrefix)app-headscale.svc.cluster.local" |
| 29 | preAuthKey: { |
| 30 | enabled: input.preAuthKey.enabled |
| 31 | secretName: "\(input.username)-headscale-preauthkey" |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | } |