blob: 09c0ec3cbe3ba872f7bde2a785ab011e7c5c24d2 [file] [log] [blame]
Davit Tabidze56f86a42024-04-09 19:15:25 +04001import (
2 "encoding/base64"
3)
4
Davit Tabidze207ce082024-04-09 19:15:25 +04005input: {
gio7841f4f2024-07-26 19:53:49 +04006 network: #Network
Davit Tabidze56f86a42024-04-09 19:15:25 +04007 repoAddr: string
8 sshPrivateKey: string
Davit Tabidze207ce082024-04-09 19:15:25 +04009}
10
11_subdomain: "launcher"
gio7841f4f2024-07-26 19:53:49 +040012_domain: "\(_subdomain).\(input.network.domain)"
Davit Tabidze207ce082024-04-09 19:15:25 +040013
gio44f621b2024-04-29 09:44:38 +040014name: "Launcher"
gio09a3e5b2024-04-26 14:11:06 +040015namespace: "launcher"
Davit Tabidze207ce082024-04-09 19:15:25 +040016readme: "App Launcher application will be installed on Private or Public network and be accessible at https://\(_domain)"
17description: "The application is a App launcher, designed to run all accessible applications. Can be configured to be reachable only from private network or publicly."
giod809aa72024-04-26 14:11:06 +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
20_httpPortName: "http"
21
gio7fbd4ad2024-08-27 10:06:39 +040022out: {
23 ingress: {
24 launcher: {
25 auth: enabled: true
26 network: input.network
27 subdomain: _subdomain
28 service: {
29 name: "launcher"
30 port: name: _httpPortName
31 }
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"
38 name: "pcloud-installer"
39 tag: "latest"
40 pullPolicy: "Always"
41 }
42 }
Davit Tabidze207ce082024-04-09 19:15:25 +040043
gio7fbd4ad2024-08-27 10:06:39 +040044 charts: {
45 launcher: {
46 kind: "GitRepository"
47 address: "https://code.v1.dodo.cloud/helm-charts"
48 branch: "main"
49 path: "charts/launcher"
50 }
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
59 tag: images.launcher.tag
60 pullPolicy: images.launcher.pullPolicy
61 }
62 portName: _httpPortName
63 repoAddr: input.repoAddr
64 sshPrivateKey: base64.Encode(null, input.sshPrivateKey)
65 logoutUrl: "https://accounts-ui.\(networks.public.domain)/logout"
66 repoAddr: input.repoAddr
67 sshPrivateKey: base64.Encode(null, input.sshPrivateKey)
68 }
69 }
70 }
Davit Tabidze207ce082024-04-09 19:15:25 +040071}