blob: dbc0b68567efc7a89e0dc80c062cf0d1b00962e1 [file] [log] [blame]
gio7fbd4ad2024-08-27 10:06:39 +04001input: {
2 username: string
3 preAuthKey: {
4 enabled: bool | *false
5 }
6}
7
gio9bd87ca2025-04-20 08:05:34 +04008name: "headscale-user"
gio7fbd4ad2024-08-27 10:06:39 +04009namespace: "app-headscale"
10
11out: {
12 charts: {
13 headscaleUser: {
gio9bd87ca2025-04-20 08:05:34 +040014 kind: "GitRepository"
gio7fbd4ad2024-08-27 10:06:39 +040015 address: "https://code.v1.dodo.cloud/helm-charts"
gio9bd87ca2025-04-20 08:05:34 +040016 branch: "main"
17 path: "charts/headscale-user"
gio7fbd4ad2024-08-27 10:06:39 +040018 }
19 }
20
21 helm: {
22 "headscale-user-\(input.username)": {
23 chart: charts.headscaleUser
24 values: {
gio9bd87ca2025-04-20 08:05:34 +040025 username: input.username
gio7fbd4ad2024-08-27 10:06:39 +040026 headscaleApiAddress: "http://headscale-api.\(global.namespacePrefix)app-headscale.svc.cluster.local"
27 preAuthKey: {
gio9bd87ca2025-04-20 08:05:34 +040028 enabled: input.preAuthKey.enabled
gio7fbd4ad2024-08-27 10:06:39 +040029 secretName: "\(input.username)-headscale-preauthkey"
30 }
31 }
32 }
33 }
34}