| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 1 | import ( |
| 2 | "encoding/base64" |
| 3 | ) |
| 4 | |
| 5 | input: { |
| gio | 7841f4f | 2024-07-26 19:53:49 +0400 | [diff] [blame] | 6 | network: #Network |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 7 | repoAddr: string |
| 8 | sshPrivateKey: string |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 9 | } |
| 10 | |
| Giorgi Lekveishvili | 03d6f4b | 2024-03-08 13:05:21 +0400 | [diff] [blame] | 11 | name: "welcome" |
| 12 | namespace: "app-welcome" |
| 13 | |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 14 | images: { |
| 15 | welcome: { |
| 16 | repository: "giolekva" |
| 17 | name: "pcloud-installer" |
| 18 | tag: "latest" |
| 19 | pullPolicy: "Always" |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | charts: { |
| 24 | welcome: { |
| gio | f884341 | 2024-05-22 16:38:05 +0400 | [diff] [blame] | 25 | kind: "GitRepository" |
| gio | 9877f29 | 2024-08-17 15:11:15 +0400 | [diff] [blame] | 26 | address: "https://code.v1.dodo.cloud/helm-charts" |
| gio | f884341 | 2024-05-22 16:38:05 +0400 | [diff] [blame] | 27 | branch: "main" |
| 28 | path: "charts/welcome" |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 29 | } |
| 30 | } |
| 31 | |
| 32 | helm: { |
| 33 | welcome: { |
| 34 | chart: charts.welcome |
| 35 | values: { |
| 36 | repoAddr: input.repoAddr |
| 37 | sshPrivateKey: base64.Encode(null, input.sshPrivateKey) |
| 38 | createAccountAddr: "http://api.\(global.namespacePrefix)core-auth.svc.cluster.local/identities" |
| gio | 7841f4f | 2024-07-26 19:53:49 +0400 | [diff] [blame] | 39 | loginAddr: "https://launcher.\(networks.public.domain)" |
| gio | 2728e40 | 2024-08-01 18:14:21 +0400 | [diff] [blame] | 40 | membershipsAddr: "http://memberships-api.\(global.namespacePrefix)core-auth-memberships.svc.cluster.local" |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 41 | ingress: { |
| gio | 7841f4f | 2024-07-26 19:53:49 +0400 | [diff] [blame] | 42 | className: input.network.ingressClass |
| 43 | domain: "welcome.\(input.network.domain)" |
| 44 | certificateIssuer: input.network.certificateIssuer |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 45 | } |
| 46 | clusterRoleName: "\(global.id)-welcome" |
| 47 | image: { |
| 48 | repository: images.welcome.fullName |
| 49 | tag: images.welcome.tag |
| 50 | pullPolicy: images.welcome.pullPolicy |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | } |