| Davit Tabidze | 56f86a4 | 2024-04-09 19:15:25 +0400 | [diff] [blame] | 1 | import ( |
| 2 | "encoding/base64" |
| 3 | ) |
| 4 | |
| Davit Tabidze | 207ce08 | 2024-04-09 19:15:25 +0400 | [diff] [blame] | 5 | input: { |
| Davit Tabidze | 56f86a4 | 2024-04-09 19:15:25 +0400 | [diff] [blame] | 6 | repoAddr: string |
| 7 | sshPrivateKey: string |
| Davit Tabidze | 207ce08 | 2024-04-09 19:15:25 +0400 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | _subdomain: "launcher" |
| Davit Tabidze | 56f86a4 | 2024-04-09 19:15:25 +0400 | [diff] [blame] | 11 | _domain: "\(_subdomain).\(networks.public.domain)" |
| gio | 09a3e5b | 2024-04-26 14:11:06 +0400 | [diff] [blame^] | 12 | url: "https://\(_domain)" |
| Davit Tabidze | 207ce08 | 2024-04-09 19:15:25 +0400 | [diff] [blame] | 13 | |
| gio | 44f621b | 2024-04-29 09:44:38 +0400 | [diff] [blame] | 14 | name: "Launcher" |
| gio | 09a3e5b | 2024-04-26 14:11:06 +0400 | [diff] [blame^] | 15 | namespace: "launcher" |
| Davit Tabidze | 207ce08 | 2024-04-09 19:15:25 +0400 | [diff] [blame] | 16 | readme: "App Launcher application will be installed on Private or Public network and be accessible at https://\(_domain)" |
| 17 | description: "The application is a App launcher, designed to run all accessible applications. Can be configured to be reachable only from private network or publicly." |
| gio | 09a3e5b | 2024-04-26 14:11:06 +0400 | [diff] [blame^] | 18 | icon: "<svg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 48 48'><path fill='none' stroke='green' stroke-linecap='round' stroke-linejoin='round' d='M42.5 23.075L26.062 7.525a3 3 0 0 0-4.124 0L5.5 23.075m5.86 1.54v14.68a2 2 0 0 0 2 2h7.14v-9.5h7v9.5h7.14a2 2 0 0 0 2-2v-14.68'/></svg>" |
| Davit Tabidze | 207ce08 | 2024-04-09 19:15:25 +0400 | [diff] [blame] | 19 | |
| 20 | _httpPortName: "http" |
| 21 | |
| 22 | ingress: { |
| 23 | launcher: { |
| Davit Tabidze | 56f86a4 | 2024-04-09 19:15:25 +0400 | [diff] [blame] | 24 | auth: enabled: true |
| 25 | network: networks.public |
| Davit Tabidze | 207ce08 | 2024-04-09 19:15:25 +0400 | [diff] [blame] | 26 | subdomain: _subdomain |
| 27 | service: { |
| 28 | name: "launcher" |
| 29 | port: name: _httpPortName |
| 30 | } |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | images: { |
| 35 | launcher: { |
| 36 | repository: "giolekva" |
| gio | 09a3e5b | 2024-04-26 14:11:06 +0400 | [diff] [blame^] | 37 | name: "pcloud-installer" |
| Davit Tabidze | 207ce08 | 2024-04-09 19:15:25 +0400 | [diff] [blame] | 38 | tag: "latest" |
| 39 | pullPolicy: "Always" |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | charts: { |
| 44 | launcher: { |
| 45 | chart: "charts/launcher" |
| 46 | sourceRef: { |
| 47 | kind: "GitRepository" |
| 48 | name: "pcloud" |
| 49 | namespace: global.id |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | helm: { |
| 55 | launcher: { |
| 56 | chart: charts.launcher |
| 57 | values: { |
| 58 | image: { |
| 59 | repository: images.launcher.fullName |
| 60 | tag: images.launcher.tag |
| 61 | pullPolicy: images.launcher.pullPolicy |
| 62 | } |
| 63 | portName: _httpPortName |
| Davit Tabidze | 56f86a4 | 2024-04-09 19:15:25 +0400 | [diff] [blame] | 64 | repoAddr: input.repoAddr |
| 65 | sshPrivateKey: base64.Encode(null, input.sshPrivateKey) |
| Davit Tabidze | 207ce08 | 2024-04-09 19:15:25 +0400 | [diff] [blame] | 66 | logoutUrl: "https://accounts-ui.\(global.domain)/logout" |
| gio | 09a3e5b | 2024-04-26 14:11:06 +0400 | [diff] [blame^] | 67 | repoAddr: input.repoAddr |
| 68 | sshPrivateKey: base64.Encode(null, input.sshPrivateKey) |
| Davit Tabidze | 207ce08 | 2024-04-09 19:15:25 +0400 | [diff] [blame] | 69 | } |
| 70 | } |
| 71 | } |