| 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 | |
| 8 | images: {} |
| 9 | |
| 10 | charts: { |
| 11 | headscaleUser: { |
| 12 | chart: "charts/headscale-user" |
| 13 | sourceRef: { |
| 14 | kind: "GitRepository" |
| 15 | name: "pcloud" |
| 16 | namespace: global.id |
| 17 | } |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | helm: { |
| 22 | "headscale-user": { |
| 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 | } |