blob: 9118275786423feee07dfaeafe675f13c909d1d7 [file] [log] [blame]
Davit Tabidze56f86a42024-04-09 19:15:25 +04001import (
2 "encoding/base64"
3)
4
Davit Tabidze207ce082024-04-09 19:15:25 +04005input: {
gio9bd87ca2025-04-20 08:05:34 +04006 network: #Network
7 repoAddr: string
Davit Tabidze56f86a42024-04-09 19:15:25 +04008 sshPrivateKey: string
Davit Tabidze207ce082024-04-09 19:15:25 +04009}
10
11_subdomain: "launcher"
gio9bd87ca2025-04-20 08:05:34 +040012_domain: "\(_subdomain).\(input.network.domain)"
Davit Tabidze207ce082024-04-09 19:15:25 +040013
gio9bd87ca2025-04-20 08:05:34 +040014name: "Launcher"
15namespace: "launcher"
16readme: "App Launcher application will be installed on Private or Public network and be accessible at https://\(_domain)"
Davit Tabidze207ce082024-04-09 19:15:25 +040017description: "The application is a App launcher, designed to run all accessible applications. Can be configured to be reachable only from private network or publicly."
gio9bd87ca2025-04-20 08:05:34 +040018icon: "<svg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 48 48'><path fill='none' stroke='black' 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 Tabidze207ce082024-04-09 19:15:25 +040019
gio24312cc2025-04-20 15:53:15 +040020_webPort: 8080
Davit Tabidze207ce082024-04-09 19:15:25 +040021
gio7fbd4ad2024-08-27 10:06:39 +040022out: {
23 ingress: {
24 launcher: {
25 auth: enabled: true
gio9bd87ca2025-04-20 08:05:34 +040026 network: input.network
gio7fbd4ad2024-08-27 10:06:39 +040027 subdomain: _subdomain
28 service: {
29 name: "launcher"
gio24312cc2025-04-20 15:53:15 +040030 port: _webPort
gio7fbd4ad2024-08-27 10:06:39 +040031 }
Davit Tabidze207ce082024-04-09 19:15:25 +040032 }
33 }
Davit Tabidze207ce082024-04-09 19:15:25 +040034
gio7fbd4ad2024-08-27 10:06:39 +040035 images: {
36 launcher: {
37 repository: "giolekva"
gio9bd87ca2025-04-20 08:05:34 +040038 name: "pcloud-installer"
39 tag: "latest"
gio7fbd4ad2024-08-27 10:06:39 +040040 pullPolicy: "Always"
41 }
42 }
Davit Tabidze207ce082024-04-09 19:15:25 +040043
gio7fbd4ad2024-08-27 10:06:39 +040044 charts: {
45 launcher: {
gio9bd87ca2025-04-20 08:05:34 +040046 kind: "GitRepository"
gio7fbd4ad2024-08-27 10:06:39 +040047 address: "https://code.v1.dodo.cloud/helm-charts"
gio9bd87ca2025-04-20 08:05:34 +040048 branch: "main"
49 path: "charts/launcher"
gio7fbd4ad2024-08-27 10:06:39 +040050 }
51 }
Davit Tabidze207ce082024-04-09 19:15:25 +040052
gio7fbd4ad2024-08-27 10:06:39 +040053 helm: {
54 launcher: {
55 chart: charts.launcher
56 values: {
57 image: {
58 repository: images.launcher.fullName
gio9bd87ca2025-04-20 08:05:34 +040059 tag: images.launcher.tag
gio7fbd4ad2024-08-27 10:06:39 +040060 pullPolicy: images.launcher.pullPolicy
61 }
gio24312cc2025-04-20 15:53:15 +040062 port: _webPort
gio9bd87ca2025-04-20 08:05:34 +040063 repoAddr: input.repoAddr
gio7fbd4ad2024-08-27 10:06:39 +040064 sshPrivateKey: base64.Encode(null, input.sshPrivateKey)
gio9bd87ca2025-04-20 08:05:34 +040065 logoutUrl: "https://accounts-ui.\(networks.public.domain)/logout"
66 repoAddr: input.repoAddr
gio7fbd4ad2024-08-27 10:06:39 +040067 sshPrivateKey: base64.Encode(null, input.sshPrivateKey)
68 }
69 }
70 }
Davit Tabidze207ce082024-04-09 19:15:25 +040071}