| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 1 | import ( |
| 2 | "encoding/base64" |
| 3 | ) |
| 4 | |
| 5 | input: { |
| 6 | repoAddr: string |
| 7 | sshPrivateKey: string |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 8 | } |
| 9 | |
| Giorgi Lekveishvili | 03d6f4b | 2024-03-08 13:05:21 +0400 | [diff] [blame] | 10 | name: "welcome" |
| 11 | namespace: "app-welcome" |
| 12 | |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 13 | images: { |
| 14 | welcome: { |
| 15 | repository: "giolekva" |
| 16 | name: "pcloud-installer" |
| 17 | tag: "latest" |
| 18 | pullPolicy: "Always" |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | charts: { |
| 23 | welcome: { |
| gio | f884341 | 2024-05-22 16:38:05 +0400 | [diff] [blame] | 24 | kind: "GitRepository" |
| 25 | address: "https://github.com/giolekva/pcloud.git" |
| 26 | branch: "main" |
| 27 | path: "charts/welcome" |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 28 | } |
| 29 | } |
| 30 | |
| 31 | helm: { |
| 32 | welcome: { |
| 33 | chart: charts.welcome |
| 34 | values: { |
| 35 | repoAddr: input.repoAddr |
| 36 | sshPrivateKey: base64.Encode(null, input.sshPrivateKey) |
| 37 | createAccountAddr: "http://api.\(global.namespacePrefix)core-auth.svc.cluster.local/identities" |
| Davit Tabidze | 56f86a4 | 2024-04-09 19:15:25 +0400 | [diff] [blame] | 38 | loginAddr: "https://launcher.\(global.domain)" |
| Giorgi Lekveishvili | 329af57 | 2024-03-25 20:14:41 +0400 | [diff] [blame] | 39 | membershipsInitAddr: "http://memberships-api.\(global.namespacePrefix)core-auth-memberships.svc.cluster.local/api/init" |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 40 | ingress: { |
| gio | e72b54f | 2024-04-22 10:44:41 +0400 | [diff] [blame] | 41 | className: ingressPublic |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 42 | domain: "welcome.\(global.domain)" |
| gio | e72b54f | 2024-04-22 10:44:41 +0400 | [diff] [blame] | 43 | certificateIssuer: issuerPublic |
| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 44 | } |
| 45 | clusterRoleName: "\(global.id)-welcome" |
| 46 | image: { |
| 47 | repository: images.welcome.fullName |
| 48 | tag: images.welcome.tag |
| 49 | pullPolicy: images.welcome.pullPolicy |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 | } |